Uploading Scripts to UNIX server - 8/20/2001 23:33:00
What is the recommended way for publishing Perl Scripts to a UNIX server.The issue is that scripts created in a Windows environment (e.g. Notepad) contain line break characters (^M) which are not handled by UNIX. The approach I'm currently using (and made up) is to use Programmers File Editor to save in UNIX format. I've created an association of .CGI to PFE so that it is always opened using the right utility. I then import that file into my FrontPage local Web into a SCRIPTS directory that allows execution. This approach allows me to use FrontPage to publish. The other approach I've come across is to create the script normally (i.e. notepad) and use an FTP client such as WS_FTP to upload the file to the directory on my UNIX server in ascii mode. This seems like many more steps, but is the most recommended I've been able to find. Does my first approach seem sound? It seems to work. Are there are considerations I'm not think of?
|