Did you add /tmp/file1 to the list in /etc/shells? On Thu, 2008-03-20 at 16:23 +0200, Shachar Shemesh wrote: > Hi all, > > > I tried the following experiment. /tmp/file1 (marked executable) has the > following content: > > #!/bin/date > > > echo "$@" > > > /tmp/file2 has the following content: > > #!/tmp/file1 > > > echo "File2" > > > when I run file2, I expect it to print out the current date. Instead, it > prints out "File2". In other words, it goes to /bin/sh to execute.
-- MS-Windows is the Pal-Kal of the PC world. My own blog is at http://www.zak.co.il/tddpirate/ My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]