I need a script to do the following and have no idea how to do it...can someone help?
I need to start Sql*Plus, load a query, say "unmatched.sql", run the query, then load unmatched.sc and run it, then print the output file that unmatched.sc created...
any help greatly appreciated.
Duckman (2 Replies)
Greetings To All!
I am running Solaris 10 in a sparc environment.
Here is the deal:
In /var/spool/cron/crontabs, there is a cron user named "sys". If I do a
crontab -l sys, it returns:
# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2... (8 Replies)
Hello all,
Normally I'm pretty comfortable with crontab, changing and updating (done it many-a-time).
But in the last two days I've been pulling my hair out over the following...
Details of OS:
HP-UX mdirect B.11.23 U ia64 2587410573 unlimited-user license
Issue:
Execute a script (very... (3 Replies)
So I have this script titled "testing.sh"
#!/bin/ksh
#PROGRAM INITIALIZATION
HomeDir=/home/sap/gl/ftp
server=testftp01
userid=ftp_uatollmsgbus
password="f&p53715"
MSGLOG=${HomeDir}/msglog.txt
FTPLogTmp=${HomeDir}/testing.tmp
FTPLogFile=${HomeDir}/testing.log... (1 Reply)
ok, there's a script i'm working on written in shell programming. #!/bin/sh
this script is written to spit out the contents of certain variables inside of it so the output looks something like this:
server01=89 server02=69 server03=89 server04=76
now, when i run this script from the... (4 Replies)
I've written a small script to replace certain words in all the the files in a directory.
#!/bin/sh
#Get list of files to be edited
file_list=`ls -p`
for i in $file_list
do
echo "Processing $i"
alteredi=`echo "$i" | sed -e 's/\//d/'`
if
then
if
then
#actual altering (2 Replies)
Hi Guys,
I have this script which is being called from another script,
sh +x SCRIPTNAME.
Now this script is failing saying the source file is missing. But i was able to see the source file was present. It was renamed and but somehow the source file is removed. There is no remove command in the... (1 Reply)
Hello,
I am getting an infinite loop from a script in Linux.
Here is the last version of the script in question. As you can see I tried to define everything properly:
#!/bin/ksh
# Script to loop over a series of dates
set -ex
typeset -i start_date=20090701
typeset -i... (2 Replies)
here is the one of the scripts:
script1.kshfunction haha
{
print "calling haha"
exit
}
script2.ksh. script1.ksh
haha | tee -a /dev/null
print "i am script 2"
after launching the script2, the result:
---------------------------------------------
calling haha
i am script 2
... (6 Replies)
Hi,
So I have a very simple script which loops over 5 times and prints the iterator value.
#!/bin/sh
START=1
END=5
for i in $(eval echo "{$START..$END}")
do
echo "$i"
done
If I save this script in a .sh file and run it in the terminal, the output I get is
{1..5} (4 Replies)
Discussion started by: jamie_123
4 Replies
LEARN ABOUT REDHAT
crond
CRON(8) System Manager's Manual CRON(8)NAME
cron - daemon to execute scheduled commands (Vixie Cron)
SYNOPSIS
cron
DESCRIPTION
Cron should be started from /etc/rc or /etc/rc.local. It will return immediately, so you don't need to start it with '&'.
Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory. Cron
also searches for /etc/crontab and the files in the /etc/cron.d/ directory, which are in a different format (see crontab(5)). Cron then
wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute. When execut-
ing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if
such exists).
Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has,
cron will then examine the modtime on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab
file is modified. Note that the Crontab(1) command updates the modtime of the spool directory whenever it changes a crontab.
SEE ALSO crontab(1), crontab(5)AUTHOR
Paul Vixie <paul@vix.com>
4th Berkeley Distribution 20 December 1993 CRON(8)