10 More Discussions You Might Find Interesting
1. AIX
We run some menu driven software that has the ability to batch menu paths and generate reports quickly. Normally you run a batch like:
$ BATCH BATCHNAME
The batch program then prompts you for the date you want the report run for. I got some help from some folks on IRC to do the following:
BATCH... (2 Replies)
Discussion started by: herot
2 Replies
2. UNIX for Dummies Questions & Answers
Hi all, hopefully someone out there can give me some tips on how to resolve this
I have a simple shell script
who -u > /tmp/userlog
one of the line stored in userlog when executing shell script manually:
jim123 pts/24 2012-03-30 13:02 00:56 4131 (xya.dsfgds.com)
one of the... (4 Replies)
Discussion started by: Linux_Novice
4 Replies
3. Shell Programming and Scripting
How can I tell a script to only execute if the other scripts exits successfully?
So "script A" executes and if it executes successfully (0),then "script B" will run
or else
"script A "executes and it exits unsucessfully (1) then "script B" will read return code (1) and will not execute
... (3 Replies)
Discussion started by: metallica1973
3 Replies
4. Shell Programming and Scripting
Hi guys,
I have a serious issue with running cron command. My host not supported format below mentioned, just the URL.) http://www.mysite/example.php ( I’m affraid a bit, the host do not going to support the sh as well…anyway)
Somehow I need to „wrap” this command, to able to call cron:
... (1 Reply)
Discussion started by: vazzeg
1 Replies
5. Shell Programming and Scripting
Hello,
I know little about shell scripting and creating a script, and worked fine in the command line. But not work in the cron. Below you could see the script
#!/bin/sh
LOGFILE=/home/transfield/mou/test.log
# Find yesterday Date and copy files
TODAY=$(date --date= +%F)
YESTERDAY=$(date... (4 Replies)
Discussion started by: malikp
4 Replies
6. Shell Programming and Scripting
Hey Guys,
i was trying out a shell script which has to remove a file for every 90 mins. this is the code i came up with .
$ crontab -e file1
file1 contains
30 1 * * * * rm -r /folder1/folder2/somefile.txt
Now i need the cron to run for every 90 mins. the problem with this is... (8 Replies)
Discussion started by: Irishboy24
8 Replies
7. Shell Programming and Scripting
Hi Guys,
Unable to run this script from the cron,although the same executes perfectly from the command line.Please help.
#!/bin/sh
#### aprintd alarm creation files #####
file=`date +%m%d%Y`
pid=$$
echo "$pid"
/u01/app/netboss/bin/aprintd/aprintd > $file &
childpid=$!... (3 Replies)
Discussion started by: ashish.sharma
3 Replies
8. AIX
Hi,
can we have more than one cron in the shell script? If so pls let me know on what basis it is running. Whether on OS scheduling or the time scheduled in the cron file.Pls answer this query.
Many Thanks (4 Replies)
Discussion started by: Yamini Thoppen
4 Replies
9. Shell Programming and Scripting
Hi everybody!
I'm struggling against a script that won' t work right in a cron job
this is my script:
cat serverlist | while read arg
do
if
then
echo "$arg"
ping -c 4 $arg >> /dev/null
if
then
... (3 Replies)
Discussion started by: deppy82
3 Replies
10. HP-UX
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)
Discussion started by: abNORMal
2 Replies