10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
awk -v youth=1599 -v d="$(/bin/ps -ef)" 'd ~/ 1599 / && d !~/ awk / && (($2 == youth) || ($3 == youth)) {print $2" "$3}'
i feel like i'm very close here. what am i doing wrong? (1 Reply)
Discussion started by: SkySmart
1 Replies
2. Shell Programming and Scripting
Friends,
I have 1000 line like below
#formate Test.server.e01=http://111.22.33.23/
#test_server_west
Test.server.w01=http://112.123.123.22/
Test.server.w02=http://113.143.123.22/
Test.server.w03=http://112.183.123.22/
#test_server_east
Test.server.e01=http://115.123.123.22/... (6 Replies)
Discussion started by: jothi basu
6 Replies
3. Shell Programming and Scripting
Platform: Oracle Enterprise Linux 6.2
I have several files like below. I want to remove all files except one file
For example , I want to remove all the files below except dasd_91197.trc
$ ls -alrt *.trc
-rw-r----- 1 ecmdev wms 8438784 May 7 21:30 dasd_91177.trc
-rw-r----- 1 ecmdev wms ... (3 Replies)
Discussion started by: John K
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am writing a little script to update a parameters on JMQ. however the JMQ requires a "y" confirmation to be input as part of the cmd I am running. However I want run this script to offline with no input from a user.
it works if a I create a file with with just y in it and pass that in... (3 Replies)
Discussion started by: shropshirehobbi
3 Replies
5. Solaris
Hi Folks,
When i execute the command df -kh in my system the o/p hangs..
The command runs fine but takes a lot of time before coming back to the # prompt.
Can anyone please suggest the possible cause and solution?. (10 Replies)
Discussion started by: vivek.goel.piet
10 Replies
6. Shell Programming and Scripting
Dear All,
read command not waiting for my input, please suggest.
code:
while read line
do
echo "$line " | grep -i .par$
if ; then
cd ../par
echo " Do you want to proceed"
read
else
cd ../sql
read
fi
done <inp.txt
Its not asking me any input? (2 Replies)
Discussion started by: mahendra singh
2 Replies
7. UNIX for Dummies Questions & Answers
Currently I am using the following sz and rz commands to run file transfer using ZMODEM within a perl script.
sz -b -m1 -M2 -k -e -r -u -t10
rz -b -m 1 -M 120 -y
Is there any flag setting that will allow me to terminate when a retry 0 error is outputted as this is constantly filling up my... (0 Replies)
Discussion started by: M1keSt4r
0 Replies
8. UNIX and Linux Applications
Hi All,
I have to make an alert that'll wait for ssh response from the server for certain seconds, if no response is there in between it'll raise an alarm.
Havn't found any option for this yet, pls. help if anyone knows abt this. Any suggestion is welcome. :)
Best Regards,
VG (3 Replies)
Discussion started by: vguleria
3 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am unable to figure out why my ps command is haning.
Is some one else is running a process which is hanged. But in that case also if i do ps it should show only the processes running by me only.
Thanks & Regards
Gauri Agrawal (2 Replies)
Discussion started by: gauri
2 Replies
10. Shell Programming and Scripting
Would there be any reason for why a 'read ans' would not wait for a user's response (i.e user has to hit a key to continue)? I know for sure that it is doing everything else in that part of my 'if' statement but it doesn't wait for me to hit a key before continuing.
The strange thing is that... (4 Replies)
Discussion started by: giannicello
4 Replies