10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am trying to create a script where I am checking the process is being run by the correct user, when I go to run the script it is not returning what I am expecting and I am not 100% sure why!!!
First off I have determined what the process user should be at the top of the script ... (3 Replies)
Discussion started by: simpsa27
2. Shell Programming and Scripting
I am having a parent scripts which reads a file with child scripts name.
I need to read one by one child script , execute it and
1. If child script fails send mail to the team with the log file
2. If the child script executes fine then proceed with the next child script execution.
#!... (3 Replies)
Discussion started by: nw2unx123
3. Shell Programming and Scripting
hello i write a script which calculate free space but he always is 0 thats wrong with my script?
if ; then
if grep -q "Ubuntu" /etc/issue ; then
CMD="df -lP | grep -v "\/home" | grep -v "\/dev/mapper/VolGroup-lv_root""
elif grep... (5 Replies)
Discussion started by: donatas1234
4. Shell Programming and Scripting
Found myself stuck on this seemingly trivial issue. I have this script which call other shell files to do their deeds. The shell files in turn call some other programs as well. My problem is that in two of these shell files, the control doesnt return to next command in script unless the Enter key... (2 Replies)
Discussion started by: DoesntMatter
5. Shell Programming and Scripting
The following shell script returning null results could you please tell me whats the problem in script,
for i in `cat... (2 Replies)
Discussion started by: shivanete
6. UNIX for Advanced & Expert Users
Hi. I'm trying to call a script named checkForFile.sh from within my main script named master.sh. In checkForFile.sh I want to set a value to the variable fileExist, but then I want to reference the value in the master.sh script. Whenever I attempt this the echo statement is just blank.
... (5 Replies)
Discussion started by: buechler66
Can anybody pls look into this script and tell me where I went wrong. After running this script, it is showing like "Trying to overlay current working directory ABORT!!!"
echo "Two parameters are needed for this shell "
echo "Please try again with... (1 Reply)
Discussion started by: clnsharma123
8. Shell Programming and Scripting
I have a script in which I'm invoking another script which runs in a subshell.
after the script is executed I want to return to the parent shell as some variables are set. However i'm unable to return to my original shell as the script which i'm calling inside is invoked in... (5 Replies)
Discussion started by: gurukottur
9. Shell Programming and Scripting
When i ask a question in my script if the answer is not correct i need to goback to the begning of the script and ask the question again.
ex - What is your name ?
Name is not correct ...try again
What is the name ?
Thank you.... (2 Replies)
Discussion started by: Nayanajith
10. Shell Programming and Scripting
I have an application on Informix 4GL, and I am invoking the shell script from the program, but I need to know if the shell script work fine or not, in order to continue the process.
I know that we can use $? to get the final status but this is on unix command. How can I return a value from the... (3 Replies)
Discussion started by: jennifer01