checking the users in smit, i am seeing that cron user has the same home directory and all the same settings as MY username. and no, i did not make it that way.
SOLVED. that was the ticket bakunin. I had been messing around with env stuff in my script already with no luck. then i tried
and that got it.
Thanks!
Moderator's Comments:
edit by bakunin: thanks for the follow-up. Changed thread title accordingly.
Hi ,
I am new to linux and also also to shell scripting.
I have one shell script which unpacks .tgz file and install software on machine.
When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder... (1 Reply)
Hi Friends,
I am new to Sun solaris unix.I am facing problem while runing my kornshell script just as an ordinary user.The script works fine while i am working as a super user.the script just uses awk to check the first charcter of a file and then copies the file to another folder. Do i... (4 Replies)
Hi all,
I need a shell script which runs a sql script but I couldn't find how to finish it. This is the code that I have:
#! /usr/bin/ksh
export SHELL=/bin/ksh
export ORACLE_SID=database
export ORACLE_HOME=/opt/oracle/product/9.2.0.8
sqlplus user <<EOF @/path/path/path/scriptname.sql... (3 Replies)
Okay, I have the following script that runs fine from a command line as well as an executable .sh file. It just moves any file/folder with movie* in the name to a folder called _Movies. The issue I'm running into is when it's call from a cron.
find /mnt/HD_a2/BT/complete -iname "movie.*" -exec... (4 Replies)
Hi, I'm new to these forums, and I'm hoping that someone can solve this problem...
To make things short:
I have DD-wrt set up on a router.
I'm trying to run a script in CRON that fetches the daily password from my database using SSH.
CRON is set like so(in web interface):
* * * *... (4 Replies)
Hi, im trying to make a shell script that basically runs a random shell script form a list of shell scripts i specify. Im not very good at writing shell scripts, and am new to linux.
Thanks in advance :) (15 Replies)
Hello Every one,
I have a shell script which is running fine manually, but its giving me hard time when running tru cron job. :wall:.
Am using #!/usr/bin/ksh
>echo $SHELL
/usr/bin/ksh
Cron Job is as below, it execues but dosent do what i want it to do.
47 15 * * *... (1 Reply)
Hi folks,
So I wrote a script to run "top", "awk" out values fro the "top" and send the results to a data file.
I then set it to run in cron every 15 minutes.
Now I'm noticing that the script, and it's sub-commands are not always cleanly finishing and, in my investigations, I am also... (11 Replies)
Hi, I have a script that seems to run to completion when in the command-line, but when it is run using the cron, it seems to time out.
They both start and run fine, but on the CRON it stops prematurely.
The script hits an API every few seconds and grabs data.
Does anyone have any idea on... (4 Replies)
Hi,
I "borrowed" a script I found online, to start a SAP router application on a Solaris 11 (SPARC) server.
The script runs fine when calling it manually, but when I schedule it to run from cron, it doesn't. I don't see any warning or failure messages anywhere, just nothing happens.
... (11 Replies)
Discussion started by: bredman
11 Replies
LEARN ABOUT OSF1
atq
atq(1) General Commands Manual atq(1)NAME
atq - Prints the queue of jobs waiting to be run
SYNOPSIS
atq [-c | -n] [-q queuename] [user...]
The atq command prints the queue of jobs waiting to be run at a later date. These jobs were created with the at command.
OPTIONS
Sorts the queue by the time that the at command was issued. Prints only the number of files currently in the queue. Specifies the queue
you want to use.
DESCRIPTION
With no options, the queue is sorted in the order that the jobs are to be executed.
When a privileged user invokes the atq command without specifying a username, the entire queue is displayed; if a username is specified,
only those jobs belonging to the specified user are displayed.
EXAMPLES
In order to look at the queue created by the at command, enter: atq
If there are jobs in the queue, a message similar to the following is displayed: root.62169200.a Tue Sep 12 11:00:00 1990
The extension specifies an at job.
FILES
Main cron directory. List of allowed users. List of denied users. Spool area. Queue description file for at, batch, and cron.
SEE ALSO
Commands: at(1), atrm(1), cron(8)
Files: queuedefs(4)atq(1)