10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am currently try to write a simple script with the following condition, but so far not having luck as the exit code would always be 0.
Run remote command to read a file and grep for test word.
if test word is in the file, send email.
if not, do nothing
also possible to ssh to multiple... (3 Replies)
Discussion started by: jaapar
2. Shell Programming and Scripting
Would like to know what is the best script that will send you an email if cronjob did not run.
Thanks (4 Replies)
Discussion started by: kenshinhimura
3. Shell Programming and Scripting
I wish to start a shell script when I receive an email.
I modified the aliases file and I add this string
The solution works .
When the as400nag user receive an email the
/home/nag-script/startstop/AS400-Boot.sh starts .but... (3 Replies)
Discussion started by: emi65
I have been looking around for a solution to this, i have been developing for a wile though am very new to CGI, PHP and a lot of the web based tech.
I have a web site hosted with a cPanel web host.
I am looking to have a script(prefer PHP) to run everytime i get a new email to firstname.lastname@example.org.... (16 Replies)
Discussion started by: iKris
5. Shell Programming and Scripting
I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email.
I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
6. UNIX for Dummies Questions & Answers
I am newbie with Sendmail and Linux in general. We use sendmail for outgoing and incoming mails.
Once our server receives a certain email email@example.com we would
like to run a PERL script doing some task wiht it.
Can you address me a little bit on that topic?
In order to do that the... (0 Replies)
Discussion started by: manustone
7. UNIX for Dummies Questions & Answers
I have 20 or so files that are ftp'd each day to a particular directory. I want to create a script that will tell me if any of these files fails to arrive or if any additional files arrive. I'm thinking I'd have a list of file names that should arrive each day, and the script would check each days... (2 Replies)
Discussion started by: daveyc82
8. Shell Programming and Scripting
I need help in running a script that would pull info from an email subject line and run a script (foo.sh). I'm pretty sure after a bit of googling that this is possible in several ways. but none was pretty clear on how to accomplish it. The part that I really need help with is getting the... (5 Replies)
Discussion started by: satekn
9. Shell Programming and Scripting
I am working on a Cshell script and I am stuck on this one part. I need to be able to copy in files to my directory but give them different names so they don't overwrite each other. For example, my folder already contains FILE.1 I want my script to name the next file copied over... (5 Replies)
Discussion started by: hootdocta5
10. Shell Programming and Scripting
Im very new at working with unix and this problem I simply can not understand. I know there are a lot of threads about problems with shell scripts behaving differently when run from a terminal and from a cronjob. I have tried everything(almost) but I still havent cracked this problem.
Im... (15 Replies)
Discussion started by: Nightowl
service(8) System Manager's Manual service(8)
service - run a System V init script
service SCRIPT COMMAND [OPTIONS]
service --help | -h | --version
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working
directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. All scripts should support at least the start and
stop commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start
service --status-all runs all init scripts, in alphabetical order, with the status command.
service calls the init script and returns the status returned by it.
The directory containing System V init scripts.
The only environment variables passed to the init scripts.
Jan 2006 service(8)