Hi,
I have a script called sam.sh which consists of a single echo statement like this
#/usr/bin/ksh
echo "Mani"
I changed the mode for the script by giving chmod a+x sam.sh.
If I want to execute the scrpt by just giving the name at the command line "sam.sh", what should I necessarily do?... (3 Replies)
If I did indeed grep something out of it, why woudln't $result show nothing?
When I do $? , it does show success...
What is the proper syntax so that $result shows actual thing it's grepping out?
result=`(ssh $host tail -1 /something/somethingelse) | egrep -i "value" >dev/null`
#echo... (3 Replies)
I would like to know:
1. How is `command` used?
2. How is '$command' used?
For example, a script file that checks for apache tomcat processes that I created has the following lines:
test
set suffix=` grep "6.0.18"`
set command = `ps -ef $suffix`
echo $command //?? hoping this... (2 Replies)
In bash scripts please can someone tell me if the below is the correct syntax for comparing integers and strings;
for integers -
if ;then
for strings -
if ; then
Thanks
Calypso (4 Replies)
Hi,
I am very new to this forum, can any one tell me which is the very basic certification on unix shell scripting?
please give me an advice on this. (1 Reply)
Hi All,
I am a newbie to shell scripting. I am trying to something like this.
#!bin/bash
cd /u01/app/oracle/
# then start the process
./opmnctl startall
Can someone help me with this requirement.
Help is very much appreciated.
Thanks
Venkat
Please use code tags next time for... (10 Replies)