How to write file containing shell script?
| From: | Dalton Hunter | Date: | Thu, 28 Mar 2002 06:30:23 +0000 |
| Subject: | How to write file containing shell script? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90478@lists.php.net to get a copy of this message | ||
Hi, I am trying to write a file that contains a shell script. The file
writes to the server but when I try to execute it it fails with a command
not found error. But if I copy and paste the files contents into a new text
file using Textpad on my PC and upload it to the same directory it works?!
It is not related to permissions as both files are 777 and I am root? The
only difference I could tell is when I compare the files in Textpad although
the contents are identical, the failed file is slightly larger and has a
file type of "Netscape" in the File Properties while the other has a file
type of "PC"? Any ideas?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.343 / Virus Database: 190 - Release Date: 3/22/02