10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My bash below verifies the integrity of all .bam in a directory and writes the out output to a .txt file. That is part one of the script that works. The second part of the bash searches each one of the .txt files for a string "(SUCCESS)" and if found display a message and if it is not found... (6 Replies)
Discussion started by: cmccabe
2. Shell Programming and Scripting
I have a shell script scheduled in cron job to run at every 1 minute which transfers files to remote machine and then move the files to backup folder.
sftp user@hostname <<-EOF
mv /u01/app/ftp_tmp/* /u01/app/ftp_bkp
Now the problem is... (6 Replies)
Discussion started by: Bhavi
3. UNIX for Dummies Questions & Answers
I am calling a shell script from another shell script, however, it only executes part of it (the echo commands only). What could be some causes for that?
echo... (7 Replies)
Discussion started by: DBnixUser
4. Shell Programming and Scripting
I have following script to send email when a USB is attached.
LINES=`/usr/bin/wc -l < /var/log/messages`
if ; then
tail -n $DIFFERENCE /var/log/messages |while read line
if $( echo $line | grep --quiet... (2 Replies)
Discussion started by: kashif.live
5. Shell Programming and Scripting
I have wrote a script to get a very large encrypted file from a remote ftp server to a local debian box.
The file downloads successfully, but the script never exits, or quits. None of code executes after the ftp get command.
The file is approx 291M
Here is the code:
!/bin/sh... (3 Replies)
Discussion started by: jstrahm
6. Windows & DOS: Issues & Discussions
Batch script gets executed without any error, but on execution some of the partial contents of the batch file gets appended at the end of the file which is currently in execution, hence the script tries to execute again for the second time , which should not happen.
How to get it... (5 Replies)
Discussion started by: milink
7. Shell Programming and Scripting
Below is my script code which filters failed logins from existing and non-existing users from the server. The problem is, it takes longer to execute and complete than expected. Anyone here can edit the script to speed up its execution.
for i in $LIST
do... (10 Replies)
Discussion started by: linuxgeek
8. Shell Programming and Scripting
Am using the below command to start my application using the root user
su - bin -c "/home/bin/test/start.sh"
but am getting the error becaue i have set some environment varibales in bin's .profile
when i execute the command start.sh by logging directly into bin account it's... (9 Replies)
Discussion started by: ravi.sri24
9. Shell Programming and Scripting
We now have a Log file which has time stamps of all the scripts ran. It has start
time and end time. I now have a requirement to send mail to the Admin after the script finishes running.
Can some one help me with a Script which will send mail with Start time and
End time of the... (2 Replies)
Discussion started by: srikanthgr1
10. Shell Programming and Scripting
we have this script that stops, starts and monitor process scheduler. prcs_control. this script runs perfectly when executed by ps_user.
we are now creating a new script that will run this script and is executed by root. this script needs to execute the prcs_control as ps_user because root can... (1 Reply)
Discussion started by: tads98