Need to exclude .NFSxxx files in clear old files batch script
I am new to Shell Scripting and need some help.
The following batch job has been failing for me due to the .nfsxxx files in use. I need to know how to modify the following script to exclude the .nfsxxx files so this batch job will not fail on me. I have done lots of googling and keep coming back to the lsof command and that is not working for me, Here is the script:
Moderator's Comments:
Please use code tags next time for your code and data.
Hi friends!
I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me. (1 Reply)
so i have hundreds of files named history.20071112.tar
(history.YYYYMMDD.tar)
and im looking to extract one file out of each archive called status_YYYYMMDDHH:MM.lis
here is what i have so far:
for FILE in `cat dirlist`
do
tar xvf $FILE ./status_*
done
dirlist is a text... (4 Replies)
If I execute the command "ls -l /export/home/abcde/dev/proj/code/* | awk -F' ' '{print $9}' | cut -d'/' -f6-8" it will list all the files in /export/home/abcde/dev/proj/code/ directory as well as the files in subdirectories also
proj/code/test.sh
proj/code/test1.c
proj/code/unix... (8 Replies)
help trying to figure out a batch shell script to zip each file in a directory into its own zip file
using this code but it does not work
tryed this also
nothing seems to work , just ends without zipping any files
i have over 3000 files i need to zip up individualy
... (7 Replies)
Hi all,
I am using a batch script that ftps the compressed xml files to the Unix environment from the Windows environment and i perform this using the below line of coding:
echo cd %VAR_TR_FTP_DIR% > %TR_FTP_BATCH_FILE BatchNum%
Echo lcd "%VAR_TR_SOURCE_PATH_BatchNum%">> %TR_FTP_BATCH_FILE... (1 Reply)
hi i have a folder full of files. some of the names are quite off because the dimensions were the same and i had to put a 'b' after the initial number so that it didnt overwrite. what i want is a script in unix to overwrite the filwe name leaving some of the title intact, e.g. below are some... (3 Replies)
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
I have some 50+ files in the following format :
abcd_vish_running_ZEBRA_20140818.dat_08-14-2014_23:08:23
abcd_vish_running_ZEB-RA_20140818.dat_08-14-2014_23:08:35
abcd_vish_running_ZEB_RA_20140818.dat_08-14-2014_23:08:37
abcd_vish_running_RI-NG_20140818.dat_08-14-2014_23:08:42... (5 Replies)
Hi.
I want to schedule a job at some directory will several files in it.
But there maybe a situation whereby some of the files at the point of the schedule are still transferring during that time.
So I want to skip those files from being processed.
Two method that come to my mind:
1.... (5 Replies)
I am newish to the site and to unix.
I have a functioning interactive script running on Mac that sorts and processes files located in an unsorted folder on my desktop.
As it currently stands, the user types jpg into the command line, the script executes and iterates through the unsorted... (8 Replies)
Discussion started by: Braveheart
8 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)