11-19-2008
You need to be more specific about what you're doing, please.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how do i trap enter command entered by a user.
actually i am throwing a screen this screen has no input but this screen should be displayes unless and until the user presses the enter key. as the user presses enter key the command prompt should come.
how do i achieve this (1 Reply)
Discussion started by: sunil bajaj
1 Replies
2. UNIX for Dummies Questions & Answers
I have written a UNIX script that will automatically ftp a file to a server. The problem is when I missed enter information w/in the .txt file that contains the userid/password and what file to transfer, I had no way of capturing the failuer of the file transfer. I verified w/in the script that the... (1 Reply)
Discussion started by: dhawkjrscripter
1 Replies
3. Shell Programming and Scripting
Hi,
Can anybody tell me how to error trap an empty line. If i am asked for a password and I hit enter without entering any text, how do i display an error?
Thanks
Kev (6 Replies)
Discussion started by: kev112
6 Replies
4. Shell Programming and Scripting
Hello,
I have the following shell script to perform ftp:
ftp -n $HOST<<EOD
quote USER $USER
quote PASS $PASS
lcd $outputd
cd $dir
binary
put *.zip
quit
EOD
If any error is generated from this script then how to trap the error. For ex: let's say we entered wrong password then the... (5 Replies)
Discussion started by: radhika
5 Replies
5. Shell Programming and Scripting
hey all,
I have a script that creates and then distributes html files via scp on a 60 second cycle. On occasions the scp will hang and not complete with the cycle.
When running the scp command in the back ground it returns the PID. How do I trap $! in the script?
job=`echo $!` returns... (2 Replies)
Discussion started by: nhatch
2 Replies
6. Shell Programming and Scripting
I want to trap any errors from a backup database script and send an email when an error occurs. I can trap command errors and send an email in the following code. My problem occurs if an error occurs in the Maxl script, /opt/hyperion/AnalyticServices/bin/essmsh < MaxlScript.msh..., that is called... (0 Replies)
Discussion started by: t_coop
0 Replies
7. Shell Programming and Scripting
I'm trying to trap errors in a shell script executing an sftp command this way:
/usr/bin/sftp $FTP_USER@$FTP_SERVER <<EOF> $HOME/$ERR_FILE
cd $FTP_DIR
put $FILE_NAME
bye
EOF
I expect errors to be recorded in $ERR_FILE but they are not. The only thing in the $ERR_FILE is:
sftp> sftp>... (2 Replies)
Discussion started by: pochon
2 Replies
8. Shell Programming and Scripting
Hello
I need to source a script. But that script terminates with a trailing exit. Which exits my script. I'm using bash, and this doesn't work:
trap 'echo disabled' EXIT
source other_file
trap '' EXIT
Instead, it calls my trap, but then exits anyway. I could get disgusting and... (4 Replies)
Discussion started by: brsett
4 Replies
9. Shell Programming and Scripting
Hi,
I have one shell script as below
while read SegList
do
if test -s ${SourceFile_Path}/${Segment_List_Temp}
then
ls -r -1 ${FTP_Path}/${SegList}.DAT.${Datelist}.GZ|cut -d '.' -f2>>${SourceFile_Path}/${List_Temp}
echo "IF above statment Fail I want to Create Emtpy File How to Trapp... (3 Replies)
Discussion started by: samadhanpatil
3 Replies
10. Shell Programming and Scripting
im trying to make a trap signal 2 (ctrl c) in a bash script
if a user presses ctrl c while running the script it should display an error message but not quit the bash script just yet. User will have to press "enter" to quit
This is what i have so far
#trap trap_control 2
#while true
#do... (6 Replies)
Discussion started by: gangsta
6 Replies
LEARN ABOUT DEBIAN
condor_qsub
CONDOR_QSUB(1) User Commands CONDOR_QSUB(1)
NAME
condor_qsub - minimalistic qsub emulation for Condor
SYNOPSIS
condor_qsub [OPTIONS] [<command> [<command_args>]]
DESCRIPTION
Minimalistic emulation of SGE's qsub for Condor.
The primary purpose of this emulation is to allow SGE-style submission of dependent jobs without the need to specify the full dependency
graph at submission time. This implementation is neither as efficient as Condor's DAGMan, nor as functional as SGE's qsub/qalter. It merely
serves as a minimal adaptor to be able to use software original written to interact with SGE in a Condor pool.
In general condor_qsub behaves just like qsub. However, only a fraction of the original functionality is available. The following list of
options only describes the differences in the behavior of SGE's qsub and this emulation. Qsub options not listed here are not supported.
OPTIONS
-b <y|n>
If 'y', command and arguments given on the command line are wrapped into a shell script which is then submitted to Condor.
--condor-keep-files
This is a non-SGE option. If given, it will prevent condor_qsub from deleting temporary files (generated submit files, sentinel
jobs). This is mostly useful for debugging.
-cwd
If given, this option will cause the 'initialdir' value in the Condor submit file to be set to the current directory.
-e <filename|path>
Name of the file to contain the STDERR output of the job. By default this will be job_name.ejob_id[.task_id]. If an existing direc-
tory is specified, the file will be placed inside this directory using the default schema for the filename.
-h,--help
Print usage summary and option list.
-hold_jid <jid>
If given, the job will be submitted in 'hold' state. Along with the actual job a 'sentinel' job will be submitted to Condor's local
universe. This sentinel watches the specified job and releases the submitted job whenever the job has completed. The sentinel
observes SGE's behavior to detect job exiting with code 100 and not start depedent job in this case. If a cluster id of an array job
is given the dependent job will only be released after all individual jobs of a cluster have completed.
-l <ressource spec>
This option is currently ignored.
-m <a|e|n><...>
SGE's notification labels will be translated (approximately) into Condor's notifications states (Never, Error, Complete).
-M <email>
Added as 'notify_user' to the submit file.
-N <jobname>
Determines the default name of logfile (stdout, stderr).
-o <filename|path>
See -e option, but for a job's stdout.
-p <int>
Added a 'priority' to the submit file.
-r <y|n>
This option is currently ignored.
-S <shell>
Path to a shell binary for script execution.
-shell <y|n>
This option is currently ignored.
-t <start>[-<stop>[:<step>]]
Task ID specification for array job submissions.
-q <queue name>
This option is permanently ignored, as Condor doesn't have multiple queues.
-V
If given, 'getenv = True' is added to the submit file.
--version
Print version information and exit.
This script is released under the Apache V2.0 License. It was written by Michael Hanke <michael.hanke@gmail.com>.
condor_qsub 0.1 September 2012 CONDOR_QSUB(1)