07-12-2010, 04:33 PM
(07-12-2010, 12:13 AM)Arjen Wrote: Did you upload the script using FTP from Windows to Linux? Apparently if a shell script gets opened and saved in notepad it will not run anymore.please tell me what' command for debain to create and edit and save
#!/bin/sh
MUST be at the very top of the page and it's best to have a carriage return after it.
There CANNOT be a empty line ABOVE #!/bin/sh or you will get this error.
Maybe you should take a look at dos2unix
thnak you