i am using
SunOS ReportServer 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-2500
and i just wrote a simple script like below:
#!/sbin/sh
df -k
exit 0
when i run it i get response as below
check.sh: not found
please what am i doing wrong
i am using
SunOS ReportServer 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-2500
and i just wrote a simple script like below:
#!/sbin/sh
df -k
exit 0
when i run it i get response as below
check.sh: not found
please what am i doing wrong
#! /bin/sh
i still get the same error response
how do you run the script? please post the screenoutput inside CODE tags... like:
# myscript.sh
# output blabla
Most likely the current directory is not in your path. Use the full name including path or in case your current directory is containing the script:
./check.sh
./check.sh: not found
i just tried that again,
its strange why it does not work
this looks like you are in the wrong directory... please post the output of:
pwd
ls -l
its ok now,thanks