Search Results

Search: Posts Made By: rahulparo
1,053
Posted By rahulparo
Sending Alert mail
I need to design a script which will run evry hour and work in such a way that i need to send an alert mail if some value exceeds the threshold value. But, if the value is within the threshold value...
3,438
Posted By rahulparo
Actually i need to use the output in some other...
Actually i need to use the output in some other script as well as i m getting this input by running other script... :)
1,078
Posted By rahulparo
Thanks a lot... ur ideal really helped solve the...
Thanks a lot... ur ideal really helped solve the problem in a smarter way...
1,078
Posted By rahulparo
I am generating this input file by running a...
I am generating this input file by running a script and to get the final result I want to accomplish this...
1,078
Posted By rahulparo
Getting few info from file and then displaying in a file
I have a file(abc.txt) with the following content:
ps -ef|grep Server1|grep Process1 Status1
ps -ef|grep Server2|grep Proces2 Status2
ps -ef|grep Server1|grep Process3 Status1
ps -ef|grep...
3,438
Posted By rahulparo
u cn just write: pid=eval "$cmdline" and it will...
u cn just write: pid=eval "$cmdline" and it will work fine....

Thanks for giving the idea of eval... Its wrking fine nw
3,438
Posted By rahulparo
I tried bt its giving syntax error that '(' is...
I tried bt its giving syntax error that '(' is expected i the line:

eval pid= \$( $cmdline )
12,960
Posted By rahulparo
echo $(ls -tr | tail -1) > newfile.txt is the...
echo $(ls -tr | tail -1) > newfile.txt
is the best solution for it....
3,438
Posted By rahulparo
Reading UNIX commands from file and redirecting output to a file
Hi All

I have written the following script:
#!/bin/ksh
while read cmdline
do
echo `$cmdline`
pid="$cmdline"
done<commands.txt

===========
commands.txt contains:
ps -ef | grep abc |...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 01:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy