08-06-2008
Cron standard output and error output is mailed to your user mailbox. So please check mail command. It is possible to redefine it.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there, this is part of my script:
/usr/bin/cd /u01/oradata
/usr/bin/cp `/bin/ls -1 . |grep -v "^DIMStemp01.dbf$" | grep -v "^DIMSts01.dbf$"|grep -v "^DIMStects01.dbf$"` /backup
It's working fine when I manually run on telnet session.
/bin/ls -1 . -- to list all the files inside... (2 Replies)
Discussion started by: *Jess*
2 Replies
2. Shell Programming and Scripting
Hello,
I have written a script that has a sudo command to change file permissions within it.
When I run the script manually, the sudo command inside of it works fine.
When the script is run through crontab I get the error "cron: not found".
It the same user profile that I am using... (6 Replies)
Discussion started by: WhotheWhat
6 Replies
3. Shell Programming and Scripting
Hi All,
i have a cron entry like
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /amex/sssmonitor/dss_chk.ksh
and the script is like
#!/bin/ksh
file=`uname -n`
> /sunmast/projects/oasis/COREDEV/Dss$file.log
> /tmp/output_sss
today=`date`
varb=`ps -ef | grep... (5 Replies)
Discussion started by: usha rao
5 Replies
4. Solaris
Hi,
I have a script that is executed perfectly.
When I put it in cron, it is not executed.
What could be the reason?
thanks (2 Replies)
Discussion started by: melanie_pfefer
2 Replies
5. Shell Programming and Scripting
Hello,
I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me
1) How could I check my script when it is running from cron like... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
6. Shell Programming and Scripting
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies
7. Shell Programming and Scripting
the following unix command gives me the number of records avaiable in my application
/navs/sys/appl/bin/record list
This gives number of rows and colums. I want to generate one text file everyday at 6:10 AM using cron
So I added following entery into crontable
#Generate record file at... (6 Replies)
Discussion started by: Nakul_sh
6 Replies
8. Linux
Hi Folks,
I am trying to copy a directory along with sub-directories to SFTP server.
I have connected to SFTP and tried to run the below command:
sftp> get -r abc/*
It is throwing the error Invalid flag -r
Can you please let me know the ways to copy a directory from Local to SFTP
... (1 Reply)
Discussion started by: kirans.229
1 Replies
9. UNIX for Beginners Questions & Answers
I have made a program that reads a text file and checks for palindromic words and then outputs them. They each appear on a new line with a count of the number of occurences beside each of the words.
Requirements for being classed as palindrome are that the word must have at least 3 letters and... (7 Replies)
Discussion started by: greenhouse91
7 Replies
10. Shell Programming and Scripting
Hi Guys,
Can someone take a look at my scripts what missing, plugin usb drive the script is running can log all my echo but cannot execute command. Is there any configuration in linux or to my scripts need to add?.
What i want to achieve is every time I plugin the usbdisk automatic mount to... (21 Replies)
Discussion started by: lxdorney
21 Replies
newmail(1) General Commands Manual newmail(1)
NAME
newmail - notify users of new mail in mailboxes
SYNOPSIS
interval] [file-spec]...
DESCRIPTION
The utility monitors your incoming mailbox or specified mail folders.
The basic operation is that the program checks the folders each interval seconds (default 60) and lists any new mail that has arrived in
any of the mailboxes, indicating the sender's name, and the subject of the message.
Without any options, runs in the background at a default interval of 60 seconds to monitor the user's incoming mailbox. So that they are
suitable for display on an already active screen, messages are prefixed with a pair of pointer characters as follows:
If there is no subject, the message is displayed. If there is more than one folder, output lines are prefixed by the folder-name or the
prefix string specified by file-spec.
runs until you log out or explicitly kill it. It can internally reset itself if the mailbox shrinks in size and then grows again.
Options
recognizes the following options:
Set the time interval between mailbox checks
to the value specified, in seconds. The default is 60.
interval must be less than 2^32 seconds. If it is set to less than 10 seconds, warns that such short intervals are
not recommended.
Run the program within the current window in the foreground
with a more succinct output format.
The output formats become:
Operands
recognizes the following operand:
file-spec Specifies the name of a folder and an optional prefix string, in the form:
Metacharacters such as and indicate the folder directory. The default is the value of the environment variable or
EXAMPLES
Check incoming mailbox every 60 seconds:
Check incoming mailboxes of and every 15 seconds for new messages.
Monitor the incoming mailbox of user and the folder in your mail directory called Prefix all new messages in the incoming mailbox of with
the string and the new messages in the folder with Also, monitor folder
AUTHOR
was developed by HP.
newmail(1)