: > i'm using SunOS 4.1.3. when i write a shell script called test that
: > contains one line:
: > echo "Hi there"
: > and i make it executable with "chmod +x test", if i then type test or ./test
: > at the command prompt, the script does not execute. it only executes if i type
: > "source test". why is that? even weirder, if i create another script which
: > contains one line,
: > tar cvf - /vmunix | rsh remote_box dd of=/dev/rst0
: > and make it executable, lo and behold, it works! what's the deal?
: Just a guess, here, but did you try adding
: to your script? I'll admit that both scripts work fine on my linux box using
No guys, the reason (I hit the same problem several years ago) is the name
of your script, "test". There is a Unix utility in /bin/test that is
executed PRIOR to your local "test" program because it is in the PATH first.
Just change the name of your script to ANYTHING not already in the PATH.
When you "source" the program, that looks in the current directory for
"test" not the one in the PATH, /bin/test.
URL: http://www.celestial.com One Mercer Plaza, Suite S100
Mercer Island, WA 98040; (206) 236-1676
Manufacturer of InterRack (Internet-in-a-Rack), a full turn-key
system, including all the hardware, software, installation, setup, training
and support for businesses and Internet Service Providers