10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Folks,
On Below Script, I want to apply condition.
Condition that it check the directory for files if not found keep checking.
Once directory have files and founded do the calculation and finish the code.
Script to check the files existence inside a directory, If not then keep... (16 Replies)
Discussion started by: sadique.manzar
16 Replies
2. Shell Programming and Scripting
This is what I have so far
grep -lir "some text" *
I need to check all files on the system for this text, if the text is found I need to change the file permissions so only ROOT has read and write access.
How can this be done? (3 Replies)
Discussion started by: mapleleafs89
3 Replies
3. Shell Programming and Scripting
i need to verify whether the ip adress given as input to the shell script is pingable or not... that is whether the ip is alive and responding..
ping $ip_adress
the above wont work in script because the execution is continuous... so the shell script keeps will dwell in this pinging process...... (8 Replies)
Discussion started by: vivek d r
8 Replies
4. Solaris
Hi,
I have 2 VM of Solaris ( 2nd one full clone )
1st VM - 192.168.1.30
2nd VM - 192.168.1.31
My need : ping both VM from each other
I have added host entry in /etc/hosts of both server but unable to ping each other from solaris console...
Pls advice (4 Replies)
Discussion started by: saurabh84g
4 Replies
5. Shell Programming and Scripting
Hi,
I am in trouble. I can get inside my condition test inside a loop :
I am in ksh (solaris)
while read file
do
<commande to retrieve file> >> ${LOG_RETRIEVE_FILE.log}
msg_err=$(cat ${LOG_RETRIEVE_FILE.log} | grep "error retrieve")
if ; then
<sendmail>
exit 1
fi
done
I tried... (6 Replies)
Discussion started by: Aswex
6 Replies
6. UNIX for Dummies Questions & Answers
hi there.
im having a problem with a host at the moment, i can ping the host and responds with host is alive. i cannot telnet, rsh or anything else to it... it tells me connection refused.
when i run a ckport on it i get answers from :
*** successful - smtp
*** successful - sunrpc
... (6 Replies)
Discussion started by: brian112
6 Replies
7. Shell Programming and Scripting
I have two redhat linux server. i have created one script which contain some command that run on Local server as well as remote server.I am using this command to connect to remote server
ssh user1@192.x.x.x 'command'
but when i am running the script in local server it connecting to the server... (1 Reply)
Discussion started by: ranvijaidba
1 Replies
8. IP Networking
I have been busting my head over a network issue at work recently. I believe the problem to be in the L2 domain, but "the powers that be" believe that it looks more like a server port related problem. And the biggest problem of all is that EVERYBODY in the Engineering Department uses this... (1 Reply)
Discussion started by: jjinno
1 Replies
9. Shell Programming and Scripting
Hi
I am writing a script file which sends the log files along with their size in a folder named log to a file called temp.log using the following cmd:
ls -st 190_GSTV_HUX_003QISCGSK026** >> /home/user/temp.log
the temp.log looks like this:
16 190_GSTV_HUX_003QISCGSK026_message070321.log
... (11 Replies)
Discussion started by: kiran1112
11 Replies
10. Shell Programming and Scripting
Guys,
I want to run a script located on a different server from my pc.
Let say the server has an IP of 1.1.10.2/16 and the script path is:
/home/user/bin/check.sh
The script scans for all available devices on the lan.
My pc has an IP of 1.1.15.4/16 and I can ping the sever and can... (3 Replies)
Discussion started by: tony3101
3 Replies