07-31-2008
Did you check your email?
Append >> /tmp/mytestfile.log 2>&1 to the line in crontab to redirect both standard error and out to the file /tmp/mytestfile.log
Sorry I see you already covered this.
Last edited by jhtrice; 07-31-2008 at 05:59 PM..
Reason: Slow post
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Does anyone know why the cron job fail to run automatically ?
We have the problem with some Solaris 2.5.1 Machine !
The cron seemd to fail to submit the jobs defined at the defined time !!
Why ?
Sometime it runs OK,but sometime it fail .
We are very sure the problem is due to... (6 Replies)
Discussion started by: kerwin_hsu
6 Replies
2. Shell Programming and Scripting
test.ksh
===================
#!/usr/bin/ksh
APPLICATION=hr_app
APPLICATION_UPPER=`echo $APPLICATION | tr `
echo $APPLICATION_UPPER > /tmp/test.txt
echo $APPLICATION >> /tmp/test.txt
which tr >> /tmp/test.txt
===================
When I run this from the shell:
/home/natter> more... (6 Replies)
Discussion started by: natter
6 Replies
3. UNIX for Dummies Questions & Answers
I have a script in the same directory as some files and directories im trying to tar up and I have it run in cron. Well it runs but says it can't find the directories, you need to be in the directory where the script is for it to work. Here is my cron and script its crappy but it does the trick =).... (3 Replies)
Discussion started by: kingdbag
3 Replies
4. Linux
hi,
I am newbie,
I had set cron jobs to update something on one time very day,
I had tested the script, it run fine,
but the cron jobs seem never run.
some help?
Thanks. (4 Replies)
Discussion started by: robertsnoog
4 Replies
5. Shell Programming and Scripting
I have a perl script, when I ran manually it works perfect. I check the permissions which are fine.
How can I find out why it is not running? how can I setup a log to check.
I am running it on solaris 9.
It compares multiple files, SCP and then send out an e-mail.
As I said when I ran it... (2 Replies)
Discussion started by: amir07
2 Replies
6. Shell Programming and Scripting
Dear Experts,
I have a script defined in Cron which runs every 1 minute.
* * * * * /export/home/myscript.sh >/dev/null 2>&1
Now the issue is executing that myscript.sh sometime will take 2/3 or more minutes to finish execution.
But after 1 minute cron will invoke another... (4 Replies)
Discussion started by: thepurple
4 Replies
7. UNIX for Dummies Questions & Answers
How can I run the following command from cron?
tar -cvf /email_backup/email_bu_062110.tar /prod/email (2 Replies)
Discussion started by: nim73
2 Replies
8. Shell Programming and Scripting
Hi,
Can anyone help in editing CRON (OR) write a script to run another script every second saturday??
I tried to make use of DATE command to find the day but couldnt proceed further.
your help is highly appreciated!
Thanks,
Mahi (11 Replies)
Discussion started by: mahi_mayu069
11 Replies
9. Shell Programming and Scripting
If I run 'who -u' interactively or from a script invoked through bash in a tty on my Ubuntu 12LTS box I get an output like this:
testuser pts/0 Dec 9 02:32 . 2163 (host.xx.yy)
running the same through cron I get:
testuser pts/0 2012-12-09 02:32 00:05 2163... (2 Replies)
Discussion started by: latimer
2 Replies
10. Shell Programming and Scripting
Hi,
1)
If some job supposed to run on 1st of every month at 7 AM
In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day?
2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct)
And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
LEARN ABOUT HPUX
cmscancl
cmscancl(1m) cmscancl(1m)
NAME
cmscancl - gather system configuration information from nodes with Serviceguard installed.
SYNOPSIS
cmscancl [-n node_name]... [-s|-o output_file]
DESCRIPTION
cmscancl is a configuration report and diagnostic tool intended only for use by HP Support Personnel. It gathers system software and hard-
ware configuration information from a list of nodes, or from all the nodes in a cluster. The information that this command displays
includes LAN device configuration, network status and interfaces, file systems, LVM configuration, link-level connectivity (HPUX only),
IPv4/IPv6 connectivity, and the data from the binary cluster configuration file. This command can be used as a troubleshooting tool or as
a data collection tool.
This command is a Perl script which gathers system configuration information by executing various OS commands or tools. It uses the cmexec
command to gather information from remote nodes.
The -n option can be used to specify a list of nodes to be scanned, the nodes to be scanned do not need to be a member of a cluster. If
the -n option is not specified, it will scan all the nodes in the local cluster.
By default, the output of this command will go to the file /tmp/scancl.out. If the file /tmp/scancl.out already exists, the old file will
be saved in /tmp/scancl.out.old.
The -o option can be used to redirect output to a specified output file. If the -o option is not specified, output will go to the default
output file /tmp/scancl.out.
The -s option can be used to direct all output to the screen, instead of to an output file.
Options
cmscancl supports the following options:
-n node_name... Specify the node(s) to be scanned. If this option is not specified and there is a cluster configured, all the
nodes in the cluster will be scanned. If this option is not specified and there is no cluster configured, only the
local node will be scanned.
-o output_file Write configuration information to a specified output file. If this option is not specified, the information will
be directed to stdout.
-s Display the configuration information to the screen only. This option cannot be used in conjunction with the -o
option.
The output from this command contains the following information:
LAN device configuration (On HP-UX, output from lanscan; On Linux, output from ifconfig)
network status and interfaces (output from netstat)
file systems (output from mount)
LVM configuration (contents of /etc/lvmtab file)
LVM physical vg information (contents of /etc/lvmpvg file)
link-level connectivity (HP-UX only)
(output from linkloop)
IPv4/IPv6 connectivity (results from ping (and ping6 on Linux))
binary configuration file data
(output from cmviewconf)
RETURN VALUE
cmscancl returns the following value:
0 Successful completion.
1 Command failed.
EXAMPLES
To gather the configuration information from node1 and node2 and to save the output in file /tmp/scancl.log:
cmscancl -n node1 -n node2 -o /tmp/myscancl.log
To gather the configuration information from all the nodes in the cluster and save the output to the file: /tmp/scancl.log:
cmscancl -o /tmp/myscancl.log
To gather the configuration information from all the nodes in the cluster and display the output on the screen:
cmscancl -s
To gather the configuration information from all the nodes in the cluster and save the output to the file /tmp/scancl.out:
cmscancl
AUTHOR
cmscancl was developed by HP.
SEE ALSO
Linux:
cmviewcl(1), mount(8), netstat(8), ping(8), ping6(8)
HP-UX:
cmviewcl(1m), lanscan(1m), linkloop(1m), mount(1m), netstat(1), ping(1m)
Requires Optional Serviceguard Software cmscancl(1m)