and pipe the result into sh. Be aware that when "automating" things you should know exactly what you are doing , and do a test run before each "live" run...
I have been doing unix scripting for quite awhile and there seems to be a wealth of information on it.
Now I am working on migrating an intel based application to a new server.
I need to modify some existing scripts, but am having trouble finding information on windows scripting, a forum similar... (2 Replies)
hi all,
I am a newbie in unix shell script. May I know how to write a bacth job to
read a list of files afrom the inout file and do the chmod ? Thanks.
i.e.
inside input.txt
====
a.txt
b.txt
c.txt
and I want to write a batch job to read the input .txt and do the chmod 755 for all 3... (14 Replies)
Hi all,
We are running a batch job using Unix script. This batch job is running daily to get data from a Mainframe database and to load our tables. We are using an interactive ID for the batch job. If we removed that interactive ID, the batch job fails. What's my question is.. Is the... (1 Reply)
Hi,
I have a shell script to find files older than 'X' days ($2) in directory path ($1) and delete them.
Like this:
my_file_remover.sh /usr/home/c 90
Now, I need to modify this script and add it in CRON, so that it checks other directories also.
Like:
my_file_remover.sh /usr/home/c... (3 Replies)
Hi!
I'm a beginner at scripting, but have managed to complete a working KSH-script.. :D
But since this is going to production i a few weeks, I would like to optimize it and make it better structured!
The idéa of the script is to collect data from the database, put it in a file, and then... (2 Replies)
Hi ,
I am trying to execute one script residing on server B from server A and in automated way but with a trigger.
My main quetion are
1) How I will login to the remote server automatically with user name and password. ( rsh or any other way ?)
2) Once logged in I need to execute... (2 Replies)
Hi,
I am using a batch file to run 2 or more shutdown batch for each of my server like below:
Shutdown_serverA.bat
Shutdown_serverB.bat
...
Is there anyway i can do this in parallel instead of serially:confused:
ServerA & ServerB shutdown at the same time in one click (batch). (4 Replies)
Discussion started by: beginningDBA
4 Replies
LEARN ABOUT DEBIAN
qmsg
qmsg(1B) PBS qmsg(1B)NAME
qmsg - send message to pbs batch jobs
SYNOPSIS
qmsg [-E] [-O] message_string job_identifier ...
DESCRIPTION
To send a message to a job is to write a message string into one or more output files of the job. Typically this is done to leave an
informative message in the output of the job.
The qmsg command writes messages into the files of jobs by sending a Message Job batch request to the batch server that owns the job. The
qmsg command does not directly write the message into the files of the job.
OPTIONS -E Specifies that the message is written to the standard error of each job.
-O Specifies that the message is written to the standard output of each job.
If neither the -E nor the -O option is specified, the message will be written to the standard error of the job.
OPERANDS
The first operand, message_string, is the message to be written. If the string contains blanks, the string must be quoted. If the final
character of the string is not a newline, a newline character will be added when written to the job's file.
All following operands are job_identifiers which specify the jobs to receive the message string. The qmsg command accepts one or more
job_identifier operands of the form:
sequence_number[.server_name][@server]
STANDARD ERROR
The qmsg command will write a diagnostic message to standard error for each error occurrence.
EXIT STATUS
Upon successful processing of all the operands presented to the qmsg command, the exit status will be a value of zero.
If the qmsg command fails to process any operand, the command exits with a value greater than zero.
SEE ALSO qsub(1B), pbs_msgjob(3B)Localqmsg(1B)