07-11-2010
Have you checked you're mail on the AIXbox, as cron outputs it's logging in the users mailbox.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to stop the Prstat using shell script ?
because after i run the below script the thing seems to be always in loop and cannot get out till i ctrl + c, is there anything that i can add in the script to make it terminate ?
<code>
#!/bin/sh
prstat -Tc -u testing > testing.txt
</code>
... (19 Replies)
Discussion started by: filthymonk
19 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am writing a bash shell script. How can I tell it to stop. For example, I would like to have something similar to the following:
mike=1
if ; then
STOP THE SCRIPT
fi (3 Replies)
Discussion started by: msb65
3 Replies
3. UNIX for Dummies Questions & Answers
It is happening with my sessions already second time: a 'for'-loop for some reason stop to work as expected.
That means or it is looping without exitting, or it is not loop even once.
Here example of my try when it is not processing even one loop.
You can see, I start new subshell and... (14 Replies)
Discussion started by: alex_5161
14 Replies
4. Shell Programming and Scripting
Hello,
I am ftping the file from one unix box to another box. This script works fine. Only problem here is, it is asking the password when ftp the file. How can i stop that. I am providing the password inside the shell script. But it is not accepting this. I need to put this script in crontab.... (5 Replies)
Discussion started by: govindts
5 Replies
5. Shell Programming and Scripting
Hi All,
I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task.
1. User will input the option which server they wish to stop.
2. Will clear cache files from specific location.
3. ... (1 Reply)
Discussion started by: venga
1 Replies
6. Shell Programming and Scripting
Hi guys, I've found two nifty little scripts on these forums one which detects if the F5 key has been pressed:
#/bin/sh
_key()
{
local kp
ESC=$'\e'
_KEY=
read -d '' -sn1 _KEY
case $_KEY in
"$ESC")
while read -d '' -sn1 -t1 kp
do
_KEY=$_KEY$kp
... (0 Replies)
Discussion started by: rich@ardz
0 Replies
7. AIX
I have a AIX stop script file "stop_service_mail_DE_P" which is as follwoing
(
if
then
sleepforvalue=$(cat stopfileparam|grep sleepperiod|awk -F= '{print $2}')
targetdir=$(cat stopfileparam|grep targetdir|awk -F= '{print $2}')
touch $targetdir/stop_b2bgate_service_mail_de_p_p
sleep... (1 Reply)
Discussion started by: yashoda avvaru
1 Replies
8. Shell Programming and Scripting
Hi folks,
I am running a shell script it asks for username and password to stop some service, I need to write some script that it will read username and password from my shell script and then sucessfully stop services without prompting username/password query. (13 Replies)
Discussion started by: learnbash
13 Replies
9. Shell Programming and Scripting
Hi,
I need to create a shell script for automated server patching, with the following scenario:
I have two Linux servers Primary and secondary.
Server patching should start on Primary 1st and then secondary.
1st check both servers are up and running.
Then stop primary and patching will... (1 Reply)
Discussion started by: rcroyal88
1 Replies
10. UNIX for Beginners Questions & Answers
I am writing a bash shell script for GarazLab's "WP EMAIL CRAWLER - AUTO SCRAPER & REAL TIME EXTRACTOR". it contains some commands. I want to stop the shell execution as soon as it encounters an error. how to do it? (8 Replies)
Discussion started by: tahsin352
8 Replies
LEARN ABOUT DEBIAN
awayrc
awayrc(5) User Manuals awayrc(5)
NAME
awayrc - configuration file for Away
DESCRIPTION
An away configuration file consists of a series of commands. Each line of the file may contain only one command. Command names are case-
insensitive. Commands and arguments are separated by spaces.
The hash mark, or pound sign ("#"), is used as a comment character. You can use it to annotate your configuration file. All text after
the comment character to the end of the line is ignored.
Take note that if any mailboxes are configured in the rc file, they will be the only mailboxes checked, which means that you must add your
inbox--the $MAIL environment variable will be ignored.
COMMANDS
mail VALUE
This command allows the user to disable or enable the checking of the user's mailboxes. If mail checking is disabled, all mailbox
and maildir commands are ignored. VALUE can be 0, 1, no, or yes. The default value is 'yes'.
mailbox FILENAME
A file that should be checked for "new mail." The filename will be appended to the previous maildir declaration. An optional
description of the mailbox may be supplied. If the description contains a space, the entire description must be enclosed in braces,
"{" and "}".
maildir DIRECTORY
A path where subsequent mailbox declarations will be located. The only argument is the path itself.
persist VALUE
This command will set whether to do persistent mail checking. VALUE can be 0, 1, no, or yes. The default value is 'yes'.
time SECONDS
This command will set the number of seconds that away sleeps before performing its background tasks. Presently, the only background
task that away will perform is the checking of mailboxes. The SECONDS value must be more than the minimum, which set at compile
time. The only argument is the number of seconds. The default value is 300.
EXAMPLE
# check mailboxes
mail yes
# check mail every 60 seconds
time 60
# do not do persistent checking
persist no
# inbox
maildir /var/spool/mail
mailbox johndoe {your Inbox}
# procmail folders
maildir /home/johndoe/mail
mailbox linux-security {Linux Security}
mailbox mutt-announce {Mutt Announce}
FILES
~/.awayrc
Per user configuration file.
BUGS
Bug reports should be sent to the away mailing list <away@unbeatenpath.net>.
SEE ALSO
away(1)
AUTHORS
Cameron Moore <cameron@unbeatenpath.net>, and others.
Linux November 2000 awayrc(5)