9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys, i am having some mine bash script which print only ip addresses
echo "Interfaces IP addresses:"
ip -o addr | awk '!/^*: ?lo|link\/ether/ {print $2" "$4}'
echo -n "enter range of IPs(192.168.0.1-254): "
read range
nmap -oG - $range >/home/test/Desktop/SCAN
cat... (0 Replies)
Discussion started by: tomislav91
0 Replies
2. Shell Programming and Scripting
The variable N is set upon start of script so while loop runs and keeps running because N is not being updated when loop is running:
N becomes less than 9 but it still runs (should be "done")....
Any ideas? Thanks!
N=`wc -l /home/count.txt | awk '{print $1}'`
while test "$N" -gt "10"... (10 Replies)
Discussion started by: holyearth
10 Replies
3. Programming
Hi Friends,
I am using valgrind, to check errors, there are no errors in my code but this the output put i get, i need to suppress these errors, please help me do so...
Conditional jump or move depends on uninitialised value(s)
==2350== at 0x400AF0F: (within /lib/ld-2.11.1.so)... (0 Replies)
Discussion started by: niranjanvg
0 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I know similar questions appeared here already, still i didnt find answer to my problem yet.
Im getting the following message from valgrind (version 2):
==15414== 1 errors in context 1 of 6:
==15414== Conditional jump or move depends on uninitialised value(s)
==15414== at... (2 Replies)
Discussion started by: evasz
2 Replies
5. Programming
Hi everybody,
I wrote a small subroutine 'GetStringDelim()' to return a substring from a string enclosed by a string 'Limit1' and a char 'Limit2'. It works perfectly and I don't get an error message together with valgrind, if I set the 3rd parameter in GetStringDelim() to NULL (see below).
... (3 Replies)
Discussion started by: MIB_Maik
3 Replies
6. UNIX for Dummies Questions & Answers
Hi Gurus,
I am new to UNIX(HP). my requirmnet is File needs to needs to be split into multiple files dependa on one key value.
example
1 abc 333 us
2 bbc 444 ch
5 nnn 333 kk
7 hhh 555 ll
3 hhh 333 hh
now the requirment is line with 333 should be copied into test1.txt and... (14 Replies)
Discussion started by: arund_01
14 Replies
7. Shell Programming and Scripting
I am trying to learn PERL programming. I copied this example from a book just to try it on my machine. It worked out fine but when I tried it on another machine, an error appears: syntax error near unexpected token ';'.
I tried it on a third machine but a new error appears: command not found.
... (4 Replies)
Discussion started by: Slick
4 Replies
8. Solaris
Hi,
Thanks in advance.
i need to kill a unix background running job after that job process completes.
i can kill a job by giving the following unix command
kill -9 processid
how to kill the job after the current process run gets completed ?
Appreciate your valuable help.
Thanks... (7 Replies)
Discussion started by: dtazv
7 Replies
9. Shell Programming and Scripting
Hi,
Thanks in advance.
i need to kill a unix background running job after that job process completes.
i can kill a job by giving the following unix command
kill -9 processid
how to kill the job after the current process run gets completed ?
Appreciate your valuable help.
... (1 Reply)
Discussion started by: dtazv
1 Replies