Did you enter it as
$ ./myfile
or as
$ myfile
The current directory is deliberately not part of the default path.
--Scott
-----Original Message-----
From: Gil Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 17, 1999 12:17 PM
To: [EMAIL PROTECTED]
Cc: recipient list not shown
Subject: shebang (#!) question
I wrote a simple script to print "Hello World" using
gawk. I would like to execute this script without
typing on the command line "gawk -f *filename*". the
script is as follows:
#!/usr/bin/gawk -f
BEGIN {print "Hello World"}
I chmod(ed) the file to be executable, but yet in
Linux it does not recognize the script as a command.
The error message says "Command not found".
I have the same script on another unix machine and it
works perfectly. does anyone have a clue to what's
going on?
Thanks,
Perplexed neophyte
=====
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null