Computing.Net > Forums > Solaris > Solaris 10.5 perl and cron job

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Solaris 10.5 perl and cron job

Reply to Message Icon

Name: sonu2die4
Date: February 5, 2009 at 09:10:14 Pacific
OS: Solaris 10.5
CPU/Ram: 2
Product: 2 / 2
Subcategory: Software Problems
Comment:

Hi,
I want to run a crontab job. I have configured the crontab accordingly
10 * * * * /scripts/dbalter.pl >> /scripts/cronout.txt.However this does not work .Then I go to /var/mail/root and find an error in the output:
######################################################################################################################################

From root@myserver Wed Feb 4 17:02:00 2009
Return-Path: <root@myserver>
Received: from myserver (localhost [127.0.0.1])
by myserver (8.13.8+Sun/8.13.8) with ESMTP id n14N20Rx027373
for <root@myserver>; Wed, 4 Feb 2009 17:02:00 -0600 (CST)
Received: (from root@localhost)
by myserver (8.13.8+Sun/8.13.8/Submit) id n14N20Is027371
for root; Wed, 4 Feb 2009 17:02:00 -0600 (CST)
Date: Wed, 4 Feb 2009 17:02:00 -0600 (CST)
From: Super-User <root@myserver>
Message-Id: <200902042302.n14N20Is027371@myserver>
To: root@myserver
Subject: Output from "cron" command
MIME-Version: 1.0
Content-Type: text/plain
Content-Length: 136

Your "cron" job on myserver
/usr/bin/perl/ /scripts/dbalter.pl

produced the following output:

sh: /usr/bin/perl/: cannot execute
########################################################################################################################

bash-3.00£ env
LC_MONETARY=en_US.ISO8859-1
TERM=xterm
SHELL=/sbin/sh
SSH_CLIENT=138.85.45.27 28249 22
LC_NUMERIC=en_US.ISO8859-1
OLDPWD=/
SSH_TTY=/dev/pts/2
USER=root
PATH=/usr/sbin:/usr/bin
MAIL=/var/mail//root
LC_MESSAGES=C
LC_COLLATE=en_US.ISO8859-1
PWD=/var/adm
EDITOR=vi
TZ=US/Central
SHLVL=1
HOME=/
LOGNAME=root
SSH_CONNECTION=138.85.45.27 28249 10.25.30.190 22
LC_CTYPE=en_US.ISO8859-1
LC_TIME=en_US.ISO8859-1
_=/usr/bin/env
#######################################################################################################################3
Also I want to mail the output to an outlook account.Please let me know about it.I really appreciate the help.
Regards
Sonu



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Solaris 10.5 perl and cron job

Disk resizing in solaris-10 www.computing.net/answers/solaris/disk-resizing-in-solaris10/4980.html

Multipathing in solaris 10 www.computing.net/answers/solaris/multipathing-in-solaris-10/5132.html

Samba server on Solaris 2.5.1 www.computing.net/answers/solaris/samba-server-on-solaris-251/1429.html