10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
A basic sed question.
I have a set of files. In each file there is a number that I want replaced. For example, if I run sed I should get the following:
% cat test2.txt
#goofy//171.00
goofy 171.00
% sed -i 's/171/xxx/g' test2.txt
% cat test2.txt
#goofy//xxx.00
goofy xxx.00
... (2 Replies)
Discussion started by: pc2001
2 Replies
2. Shell Programming and Scripting
I am not very much familiar with telnet based scripting so I would need your help to directly submitting sms as deliver_sm or submit_sm msg to SMSC (IP & system_id and password are already known). So, need your help to provide such script. I previously used such script but my harddisk crashed and... (1 Reply)
Discussion started by: wasay
1 Replies
3. Shell Programming and Scripting
Hi All,
I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide
which cpu number (column 2) has maximum value (column 6).
Since the output is displayed/updated every seconds, it's very... (1 Reply)
Discussion started by: Optimus81
1 Replies
4. Shell Programming and Scripting
Hello Guys,
I have a linux server where I already logged in, once logged in, i telnet to local host using some dedicated port and do some action. This I can easily do manually.
Since I need to fire a lot requests so I would like to optimize it using a shell script to avoid telnetting each... (3 Replies)
Discussion started by: umarsatti
3 Replies
5. Shell Programming and Scripting
Hello,
I begin to write my first shell script, but I am totally lost, hope you can help me.
I'd like to write a script with some conditions and multiples usages:
./myscript.sh -i <host>
or
./myscript.sh -e <host>
Have you some suggestion, because I am really lost, I try to do something... (12 Replies)
Discussion started by: Francesco
12 Replies
6. Shell Programming and Scripting
Suppose im in a directory A. which has sub-directories x/y/z m/n/p etc. Iam only considered with those which have a file netl.oa at the lowermost level. So i used the find command which gives me a list in the form
./abc/def/ghi/jkl/netl.oa
and so on
Now i want the names abc def jkl and ghi. My... (3 Replies)
Discussion started by: sid.verycool
3 Replies
7. Shell Programming and Scripting
Hi
I need to telnet a device with IP Address and port. After logging in, I need to execute some commands in that device. Please find the example below
telnet 170.10.11.1 2100 #170.10.11.1 is the IP address. 2100 is the Port
after telnet, the device will show the command prompt as : ... (2 Replies)
Discussion started by: sudharsan23
2 Replies
8. Solaris
I would like to log into a server read a certain file and get the results back. I have tried like below to no avail;
#!/bin/ksh -x
(
sleep 2
echo sdpuser
sleep 2
echo cs3reloaded
sleep 5
cd /export/home/scripts/daily_checks
sleep 5
head daily_check_report.txt > test160108.txt
exit
)... (6 Replies)
Discussion started by: ricky katix
6 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
In a shell script, how can I do the following:
Find out the size of a mounted usb stick (df -h /media/usbdisk) and use the
result (physical size of USB stick) to set a loop-counter according to the disk size??
As a result, I do copy files of 4MB each as many times as they will fit... (1 Reply)
Discussion started by: joerg535
1 Replies
10. Shell Programming and Scripting
Hi,
Any scripting experts out there that can point me to the right direction of writing a script using telnet and su to access a server without any users interaction such as login and entering passwd. Thanks.
Thanks in advance
vastare (1 Reply)
Discussion started by: vastare
1 Replies