Thanks for the reply Corona688. I must've pasted an older version of the script. Either way, I removed the # but the script continues to give no output or result. Just the same cron log entry showing the job getting kicked off and nothing else. Here's an updated version of what the script looks like:
I wrote a script using 'expect' tool to change the password of my login id, every fortnight. And I had put it as a cron job.
The cron job is throwing an error
ld.so.1: /usr/local/bin/expect: fatal: libtcl8.3.so: open failed: No such file or directory
The environment variables are set... (4 Replies)
This isn't the usual problem that a shell script runs from the command line and not the cron. It's a little different.
Among other things, the shell scrip executes my .profile to set a bunch of variables. It then does an env to ensure that it ran OK.
There are echos in the shell script and... (2 Replies)
My searches turned up nothing relevant, so I apologize if this has already been looked at.
I am trying to run an expect script from a Solaris machine, that ssh's into an AIX machine, and interacts with a SMIT created menu system that runs a few backups for me.
The expect script runs fine when... (0 Replies)
Hi Gurus,
I am new to scripting and needs your help in expect script used for telnet. I wrote a simple script as
#!/usr/bin/expect-5.43 -f
spawn telnet localhost 2233
expect "password:"
send "secret\r"
send "i data.cnbc.com\r"
send "exit\r"
expect eof
When I am trying to execute... (2 Replies)
Hi,
I have a shell script as below:
ORACLE_HOME=/usr/local/opt/oracle/product/dev
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin:/usr/bin
export PATH
OUTFILE=/export/home/`basename $0`.out
export OUTFILE
export IDEN
df -k . | tail -1 | read a b c d e f
echo $a >> $OUTFILE
echo $b... (4 Replies)
Hi have a script which transferers from Microsoft server to Linux box.
The scripts(ksh) is on Linux box.
If I run script from terminal, it transfers files to directory. Where as If
I run script from CRON. It does not.
Here is the log of both:
Terminal execution log:... (2 Replies)
I'm trying to learn how to use cron for repetative tasks. I have an external disk that needs to be unmounted and remounted every hour due to some problems that a backup utility (specifically, TimeMachine) is having repeatedly accessing the device. I've created a shell script that will find the... (3 Replies)
Hi,
I created a script which connects to database and update a table.
This script is running fine when i run it manually but when i am trying to execute it scheduling in crontab.script is executing but Data is not getting updated.
below is my script
sqlplus test/##### >> test_feed.log <<!... (6 Replies)
My cron file. Copied $PATH
# Minute Hour Day of Month Month Day of Week Command
SHELL=/bin/ksh
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/perl/lib:/perl/lib/lib/perl5:/perl/scripts:.:/perl/lib/local:/home/popeye:/temp
0... (3 Replies)
Hi,
I have a shell script which fetches the MRP status and the LAG status.
When I execute it manually like, sh <script_name>, it fetches the output as expected, but when I schedule through crontab, it's not working as expected.
Any help would be really appreciated.
Here is the code... (3 Replies)
Discussion started by: Nagaraj R
3 Replies
LEARN ABOUT BSD
uupoll
UUPOLL(8) System Manager's Manual UUPOLL(8)NAME
uupoll - poll a remote UUCP site
SYNOPSIS
uupoll [ -ggrade ] [ -n ] system
DESCRIPTION
Uupoll is used to force a poll of a remote system. It queues a null job for the remote system and then invokes uucico(8).
The following options are available:
-ggrade Only send jobs of grade grade or higher on this call.
-n Queue the null job, but do not invoke uucico.
Uupoll is usually run by cron(5) or by a user who wants to hurry a job along. A typical entry in crontab could be:
0 0,8,16 * * * /usr/bin/uupoll ihnp4
0 4,12,20 * * * /usr/bin/uupoll ucbvax
This will poll ihnp4 at midnight, 0800, and 1600, and ucbvax at 0400, noon, and 2000.
If the local machine is already running uucico every hour and has a limited number of outgoing modems, a more elegant approach might be:
0 0,8,16 * * * /usr/bin/uupoll -n ihnp4
0 4,12,20 * * * /usr/bin/uupoll -n ucbvax
5 * * * * /usr/sbin/uucico -r1
This will queue null jobs for the remote sites at the top of hour; they will be processed by uucico when it runs five minutes later.
FILES
/etc/uucp/ UUCP internal files
/usr/spool/uucp/ Spool directory
SEE ALSO uucp(1), uux(1), uucico(8)4.3 Berkeley Distribution October 23, 1996 UUPOLL(8)