You shouldn't have to add all the 'export' items to your shell script if you can run sqlplus from the command line.
You should be able to just put the following lines at the top of your shell script: Or run your cronjob like the following so that the script is aware of the user environment variables: And per the error(ORA-12545: Connect failed because target host or object does not exist) you are getting, check your tnsnames.ora file and look at this link: ORA-12545: Connect failed because target host ...
I have to query a DB2 database, and sometimes they take a long time to produce results. Can I run these queries in the background, and if so, where will the results appear? (1 Reply)
Hi there folks,
I am trying to execute remote sql queries on an Oracle server.
I would like to save the result of the executed sql queries on a text file, and send that text file as an attachment to an email address.
Could anyone give me an idea on how the above could be achieved? Any help... (2 Replies)
Hi All,
I have written 4 sql queries . Now I want to write one SHELL SCRIPTING program for all these queries...
i.e
1.select * from head;
2. select * from detail;
3. delete from head;
4. delete from detail;
Please let me know how to write a shell script...
Thank you (1 Reply)
Hi,
Would someone know if I can fire nested sql queries in a shell script? Basically what I am trying to do is as follows:
my_sql=$(sqlplus -s /nolog<<EOF|sed -e "s/Connected. *//g"
connect... (2 Replies)
Hello,
I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me
1) How could I check my script when it is running from cron like... (3 Replies)
Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered.
The script is as follow:
#!/bin/sh
for file in file_1.txt file_2.txt file_3.txt
do
awk '{ print "0" }' $file > tmp.tmp
mv tmp.tmp $file
done
And the cron... (2 Replies)
Hi All,
I tried executing set of queries from shell script but not able to capture the input query in the log file. The code looks something similar to below
sqlplus user/pwd@dbname << EOF > output.log
$(<inputfile.txt)
EOF
The above code is capturing the output of queries into... (9 Replies)
Hi All,
I want to run multiple sql queries and store the data in variable but i want to use sql command only once. Is there a way without running sql command twice and storing.Please advise.
Eg :
Select 'Query 1 output' from dual;
Select 'Query 2 output' from dual;
I want to... (3 Replies)
Discussion started by: Rokkesh
3 Replies
LEARN ABOUT DEBIAN
gnome-schedule
GNOME-SCHEDULE(1) General Commands Manual GNOME-SCHEDULE(1)NAME
gnome-schedule - GNOME GUI for users' crontabs
SYNOPSIS
gnome-schedule [option...]
DESCRIPTION
gnome-schedule is a graphical user interface that leverages the power of cron or anacron and at to manage a user's crontab file and provide
an easy way to schedule tasks. It supports recurrent tasks and tasks that happen only once in the future. The user interface translates
cron strings into human-readible form for ease-of-use, but also has an expert option for those familiar with the cron file format.
For documentation on interactive use of gnome-schedule, select the Help menu option while running the program.
OPTIONS
gnome-schedule supports the standard GTK+ and GNOME command-line options, most of which need not be used except in special circumstances.
To view a complete list, see gnome-schedule --help.
BUGS
There are currently no known bugs. If you encounter one, please report it using reportbug gnome-schedule.
SEE ALSO cron(8), crontab(1), crontab(5), anacron(1), at(1)AUTHOR
This manual page was written by David Moreno Garza <damog@debian.org>, and revised by Christine Spang <christine@debian.org> for the Debian
project (but may be used by others).
November 22, 2007 GNOME-SCHEDULE(1)