Hi!
I have this situation with 3 shellscripts.
One is a "startscript" that simply calls other scripts. This one is scheduled with cron to run at regular intervals. That script runs what I'll refer to as Script 1.
Script 1 in turn runs script 2 (import_catalogs_buyer.sh)
Sometimes, seemingly... (2 Replies)
Hello friends,
Kindly help me in developing a script that asks user to enter a value and will wait for 5 seconds for the feedback. If there is no answer from the user the script will perform exit or it will continue doing something else
Ex: If yu have a multi OS system i believe while... (3 Replies)
I need to execute a shell script kept in unix machine from windows. User id, password area available.
For eg.
There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS.
Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Dear,
I have written below code to initiate the log at top of my script.
#Set the log file
LOGFILE=<path>/<filename.log>
exec > $LOGFILE 2>&1
...............
....
...
..
............
echo -e "\n\n Script finished OK " `date "+%m/%d/%y %H:%M:%S" ` "\n\n"
exit 0
the logging ends only... (14 Replies)
I'm trying to capture the output of some commands with the 'script' utility. Normally, I would type 'script /path/to/output/file', then enter commands, then hit ctrl+D to end the 'script' capture. I'm having trouble with it on a server. Upon starting 'script', it exits immediately before I type... (6 Replies)
Hello - I have a script which creates a NIS user on Solaris machine. Before creating the user I check if the user being created laready exists or not using ypmatch and use $? to get the exit code. If a user exists, I get 0, works fine. However when the user is not found, the shell scripts exits by... (1 Reply)
Hi,
My goal is to connect from unix server A to windows server B and call a bat file on windows.
I am able to succeed in remoting to windows and executing a command, the issue i am facing is the shell scrip is exiting without making sure of bat file success.
Can you please help me in... (4 Replies)
I'm not sure why but my script quits automatically at the point where unix2dos / dos2unix command is used. :confused::confused::confused:
How do a fix it?
LOG_FILE=MADDY.txt
unix2dos ${LOG_FILE}
exec 2> $LOG_FILE 1>&2
echo ${LOG_FILE}
The script exists after the below... (3 Replies)
Hi
In live system core files are generating frequently. around 10 core files in 30 mins in root file system. which is eating my space very much
below is core file
core.56539
core.78886
core.12302
core.80554
core.20147
I am trying to write a script which should move... (7 Replies)
Currently i am building a script like based on region parameter it will filter the records in config file and then it will create a text file like ab.txt and it will read the path location in that file and now i need to compare the files name in the config file to files in the path of the config... (1 Reply)
Discussion started by: saranath
1 Replies
LEARN ABOUT OSF1
atrm
atrm(1) General Commands Manual atrm(1)NAME
atrm - Removes jobs spooled by at
SYNOPSIS
atrm [-a] [-f | -i] [job_number...] | [user...]
The atrm command removes jobs that were created with the at command.
OPTIONS
Removes all jobs belonging to the person invoking atrm. If invoked by a privileged user, all jobs on the queue are removed. Suppresses
the printing of all information about the jobs being removed. Prompts before a job is removed; a response of y, or the locale's equivalent
of y, causes the job to be removed. Obsolete version of -a.
DESCRIPTION
If one or more job numbers is specified, atrm attempts to remove only those jobs.
If one or more usernames is specified, all jobs belonging to those users are removed. This form of invoking atrm is useful only if you
have superuser authority.
EXAMPLES
To remove job number 62169200.a, created by user chinn, from the queue created by the at command, enter: atrm chinn.62169200.a
Note that specifies an at job for sh. (.f specifies an at job for csh, and specifies an at job for ksh.)
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), atq(1), cron(8)
Files: queuedefs(4)atrm(1)