-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Sparenberg wanted us to know:

>> Or worse:  #!/usr.....perl\r\n ?
>>                           ^^
>> This is one of the most subtle problems when a script won't start...  it's
>> not visible in most editors unless in hex mode.  This "bug" makes it
>> appear the progname contains a carriage return as the last character of
>> its name.

In other words, it's in dos format.  Open the file in vi, run
:set ff=unix

and then save it.  Now the script will work.

Another way to spot it is from the output of the file command:

[EMAIL PROTECTED] ~]$ file sandpiper
sandpiper: ASCII English text
[EMAIL PROTECTED] ~]$ file sandpiper.dos
sandpiper.dos: ASCII English text, with CRLF line terminators

>> I didn't respond sooner because the Subject implies the script does work
>> when run as root...

Same here.
- -- 
Blue skies...   Todd      Public key: http://www.mrball.net/todd.asc
    They dont need to adjust their pricing, they just need to 
   lobby for new laws to protect their flawed business models. 
              Oh wait, they just did that.         --Dan Hollis
Linux kernel 2.4.19-24mdk   5 users,  load average: 0.02, 0.01, 0.00
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: http://www.mrball.net/todd.asc

iD8DBQE/JfKnIBT1264ScBURAriAAJ454qHUdHZxktyD+SM3cuMWLMlYywCcCuca
3gDT/W0ImSOW7Nd+E1P8G2A=
=uVJX
-----END PGP SIGNATURE-----

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to