02-06-2014
[Solved] Help with shell Script ,wait for some files for some time??
Hi All,
I have the requirement that ,i have to write a shell script that job has to wait for a 7 touch files created by another application for 4 hours, if i get all 7 touch files ,i have to send a mail that i jobs are completed, if if it is waiting for more than 4 hours i have to send a mail that job is running for a longer time.
i know the names of all the touch files, how can i achieve this in sell script,
please anyone could help me on this, please try to share your slutions and opinions , as i am new to this shell scripting ..
thanks in Advance!!!
Pradeep
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
how can i wait for 5 seconds inside my shell script? 'wait 5' command doesnot seem to be working? (2 Replies)
Discussion started by: gopsman
2 Replies
2. Shell Programming and Scripting
Hi everyone,
Please help:)
I have a list of 1000 different files which comes daily to the directory.Some of
the files are not coming to the directory now.
I need to write a shell script to find the latest date and time of the files they
came to the directory. The files should be unique.... (1 Reply)
Discussion started by: karthicss
1 Replies
3. Shell Programming and Scripting
Hi Friends,
I want a shell script which will move certain .jar files from a specified location (say /publish/content) to (/publish/archive) on every saturday morning 6 am.
One more thing to add is that before moving files it must check free space at (/publish/archive), if it is more than 60 %... (7 Replies)
Discussion started by: abhishek27
7 Replies
4. Shell Programming and Scripting
I'm a novice at unix and need it more and more to do my work.
I seem running into problems getting this script "attempt" to work:
I need to copy all files in a directory, which is containing 22000 files, into a directory one level up. There a tool monitors the content of the dir and processes... (2 Replies)
Discussion started by: compasscard
2 Replies
5. Shell Programming and Scripting
Hi,
On the server, we have app log files in this location /app/logs/error.log
On the same server, in a real time, we would like to replicate that into /var/ directory.
if someone has already done this, please share the script.
Thanks in advance. (4 Replies)
Discussion started by: lookinginfo
4 Replies
6. Shell Programming and Scripting
Hi,
I am facing a strange issue,
when i call a script from my while loop in background it doesnt go in background, despite the wait i put below the whil loop it goes forward even before the process put in background is completed.
cat abc.txt | while read -u4 line
do
#if line contains #... (2 Replies)
Discussion started by: mihirvora16
2 Replies
7. Shell Programming and Scripting
Greetings!
I'm looking for starting information for a shell script. Here's my scenario:
I have multiple folders(100) for example:
/www/test/applications/app1/logs
/www/test/applications/app2/logs
Within these folders there are log files files that need to be deleted after a month.
... (3 Replies)
Discussion started by: whysolucky
3 Replies
8. Shell Programming and Scripting
I want to use my script to get any file then delete it once it transfers to my side , I manage to create below script to generate "list" file which contains all file names in "10.10.1.1" then I made "a.out" file which contains the commands that I want to run it on "10.10.1.1" to get & delete the... (2 Replies)
Discussion started by: arm
2 Replies
9. Shell Programming and Scripting
Let's say I start process A.sh, then start process B.sh. I call both of them in my C.sh
How can I make sure that B starts its execution only after A.sh finishes.
I have to do this in loop.Execution time of A.sh may vary everytime.
It is a parameterized script. (17 Replies)
Discussion started by: rafa_fed2
17 Replies
10. UNIX for Dummies Questions & Answers
I want to create a script which calls another script with certain interval.
Script "A" should call script "B" every 60 seconds.
Script "A" should also be able to call other scripts such as "C", "D", etc. at an interval of 60, 120, 180 seconds respectively.
Basically script A should take two... (1 Reply)
Discussion started by: Vee
1 Replies
LEARN ABOUT SUSE
capisuitefax
CAPISUITEFAX(1) CAPISUITEFAX(1)
NAME
capisuitefax - sending faxes with the CapiSuite default scripts
SYNOPSIS
capisuitefax [-q] [-n] [-u user] [-A adr] [-S subj] -d number file...
capisuitefax [-q] -a id
capisuitefax -h
capisuitefax -l
DESCRIPTION
The default scripts for CapiSuite come with the tool capisuitefax for sending faxes.
It will be called with some parameters telling it which file to send (it currently only supports PostScript and PDF files) and to which
number. It will then enqueue the job converted to the right format into the send queue from which it's collected by another CapiSuite
script and sent to the destination. If the sending was completed successfully or failed finally after trying for some time, the according
user will get an email telling him/her what has happened.
OPTIONS
-a id Abort the job with the given id. To get a job id, use the -l option.
-A adr The addressee of the fax. This option is (currently) only for informational purposes and will be quoted in the sent status mail.
-d number
The number which should be called (destination of the fax)
-h Show a short commandline help
-l Shows the jobs which are currently in the send queue.
-n Don't use the configured dial prefix for this job. Useful for internal jobs.
-q Be quiet, don't output informational messages
-S subj
A subject for the fax. This option is (currently) only for informational purposes and will be quoted in the sent status mail.
-u user
Send fax as another user. Only allowed if capisuitefax is called as user root. This is mainly helpful for realizing extensions to
e.g. do network faxing.
file...
One or more PostScript/PDF files to send to this destination. More than one PostScript file will produce several separate fax jobs.
SEE ALSO
capisuite(8), capisuite.conf(5), fax.conf(5), answering_machine.conf(5)
AUTHOR
Gernot Hillier <gernot@hillier.de>.
CAPISUITEFAX(1)