10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a situation to read exit value of a command (not exit code) and process further.
bash-4.2$ returnvalue=`ssh DOMAIN\\\\firstname.lastname@example.org 'cmd /c "del C:\Users\user1\db_test.bak"'`
Could Not Find C:\Users\user1\db_test.bak
bash-4.2$ echo $?
bash-4.2$ echo $returnvalue... (3 Replies)
Discussion started by: baluchen
2. Shell Programming and Scripting
suppose my script is sample.sh
i have to run using '. ./sample.sh'
as . ./script file always executes the script in my parent shell.
when my sample.sh contains exit command .. my environment is getting closed as am executing in the parent shell ...
please suggest me how can i use... (5 Replies)
Discussion started by: pracheth
3. Shell Programming and Scripting
i want to pop up an alert box using perl script. my requirement is.
i am using a html page which calls a perl script. this perl script calls a shell script.. after the shell script ends its execution, i am using exit 0 to terminate the shell script successfully and exit 1 to terminate the... (3 Replies)
Discussion started by: Little
4. Shell Programming and Scripting
How can I exit from the shell script if a condition is not met?
Thanks in advance... (2 Replies)
Discussion started by: Phuti
5. Shell Programming and Scripting
I have a script that I need to terminate or exit the shell or session completely for the user but the exit only exit from the script and takes the user to the shell
I found this
saying that... (1 Reply)
Discussion started by: kopper
6. Shell Programming and Scripting
I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts.
Here is my script
set user = $USER
set pass = $PASS
echo... (2 Replies)
Discussion started by: allinshell99
7. Shell Programming and Scripting
I tried looking for this, but was not able to get a clear answer. Hence posting here. Please find the details below. Thanks for the help
I have 2 shell scripts, script1.sh and script2.sh. I call script2.sh from within script1.sh ( by simple ./script2.sh command).
Based on some... (7 Replies)
Discussion started by: harimac
8. Shell Programming and Scripting
I am unable to exit from a shell script using the below code:
echo "Password validated"
echo "Wrong password Quiting the application..."
exit 0#not working
(Note:"finalresult" passed to the passchk... (2 Replies)
Discussion started by: Sreejith_VK
9. Shell Programming and Scripting
could somebody tell me please how to exit a shell script:
echo "No arguments detected"
echo "still there" # is displayed .. :-( (4 Replies)
Discussion started by: sami98
10. UNIX for Dummies Questions & Answers
Can it be done? If so, how? I would like a script to contain the exit command, and log me off at script completion.
thanks (1 Reply)
Discussion started by: jpprial