No problem, this is the response to `ps -f`
$ps -f
UID PID PPID C STIME TTY TIME CMD
FIA1GSZ 33554500 594 - 12:31:02 ttyp0002 0:00 ps -f
FIA1GSZ 594 83886191 - 12:30:56 ttyp0002 0:00 sh -L
$
#!/bin/ksh did not help. I had originally #!/bin/sh
What has worked was both with #!/bin/sh and with #!/bin/ksh
is the following:
script_name="aa_encrypt_sh"
case $script_name in
*_encrypt_*)
echo "Sorry, script $0 you called is a wrong script"...
running this:
script_name="aa_encrypt_sh"
if [[ $script_name = @(*_encrypt_*) ]]
then
{
echo aaaaa
}
fi
[[: ./1 38: FSUM6807 expression syntax error, points to line 38 of my script which is if [[ $script_name = @(*_encrypt_*) ]]
running this:
if [[ $script_name...
System today is unavaile. Need unix access to test #!/bin/sh script. Does anybody knows a site that will allow me to set a unix shell account with telnet access?
I know I can use grep to see if certain string is present. Is there something that I can do with just "if".
Something like :
if [ $sript_name ???bla_bla_bla "_encrypt_" ]
then
{
echo "Sorry, script $0 you called is a wrong script"
exit 2
}
fi
echo "Good usage of script. Continue."
exit 0
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.