Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Scheduling job using UNIX "at" command Post 303046356 by Danette on Saturday 2nd of May 2020 08:15:34 AM
Old 05-02-2020
Scheduling job using UNIX "at" command

Am using the at command to schedule a task.

Code:
at now + 30 minutes
warning: commands will be executed using /bin/sh
at> /home/hagbard/chaos/iosafe120/sh/ocr.sh -dns 200 *.pdf<EOT>
job 1 at Sat May  2 14:29:00 2020

How can I know if it is running. And how can I get the output from the script to
show on the terminal when the job starts running?

Last edited by Danette; 05-02-2020 at 09:28 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Commands on Digital Unix equivalent to for "top" and "sar" on other Unix flavour

Hi, We have a DEC Alpha 4100 Server with OSF1 Digital Unix 4.0. Can any one tell me, if there are any commands on this Unix which are equivalent to "top" and "sar" on HP-UX or Sun Solaris ? I am particularly interested in knowing the CPU Load, what process is running on which CPU, etc. ... (1 Reply)
Discussion started by: sameerdes
1 Replies

2. Shell Programming and Scripting

Script scheduling problem using "at" command

Hello! I'm writing a shell script that will monitor if a server is up or down. I would like to use the command "at" inside of my script to reschedule the script to run in 2 minutes but I can't pass parameters to my script and this is my problem... This is the idea behind the script: ... (2 Replies)
Discussion started by: ben631
2 Replies

3. UNIX for Dummies Questions & Answers

Unix "at" / "Cron" Command New Problem...Need help

Hi All, I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
Discussion started by: Mohanraj
3 Replies

4. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

5. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

6. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

8. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

9. Shell Programming and Scripting

Scheduling scripts with "at" command

Hi All , I need to create a scheduling capability on one of Linux boxes so that i could some 6 scripts back to back after a gap a given time difference . To run script1 :-- my test1.sh for 3 hrs , followed by 2nd script ,mytest2.sh for 10 hrs , then mystest3.sh for 2 hrs , then... (3 Replies)
Discussion started by: Anamica
3 Replies

10. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
SSTAT(1)							 Slurm components							  SSTAT(1)

NAME
sstat - Display various status information of a running job/step. SYNOPSIS
sstat [OPTIONS...] DESCRIPTION
Status information for running jobs invoked with SLURM. The sstat command displays job status information for your analysis. The sstat command displays information pertaining to CPU, Task, Node, Resident Set Size (RSS) and Virtual Memory (VM). You can tailor the output with the use of the --fields= option to specify the fields to be shown. For the root user, the sstat command displays job status data for any job running on the system. For the non-root user, the sstat output is limited to the user's jobs. Note: the sstat command requires that the jobacct_gather plugin be installed and operational. -a, --allsteps Print all steps for the given job(s) when no step is specified. -e, --helpformat Print a list of fields that can be specified with the '--format' option. -h, --help Displays a general help message. -i, --pidformat Predefined format to list the pids running for each job step. (JobId,Nodes,Pids) -j, --jobs Format is <job(.step)>. Stat this job step or comma-separated list of job steps. This option is required. The step portion will default to lowest step running if not specified, unless the --allsteps flag is set where not specifying a step will result in all running steps to be displayed. NOTE: A step id of 'batch' will display the information about the batch step. -n, --noheader No heading will be added to the output. The default action is to display a header. -o, --format, --fields Comma separated list of fields. (use '--helpformat' for a list of available fields). NOTE: When using the format option for listing various fields you can put a %NUMBER afterwards to specify how many characters should be printed. i.e. format=name%30 will print 30 characters of field name right justified. A -30 will print 30 characters left justified. -p, --parsable output will be '|' delimited with a '|' at the end -P, --parsable2 output will be '|' delimited without a '|' at the end --usage Display a command usage summary. -v, --verbose Primarily for debugging purposes, report the state of various variables during processing. -V, --version Print version. Job Status Fields The following are the field options: AveCPU Average (system + user) CPU time of all tasks in job. AvePages Average number of page faults of all tasks in job. AveRSS Average resident set size of all tasks in job. AveVMSize Average Virtual Memory size of all tasks in job. JobID The number of the job or job step. It is in the form: job.jobstep. MaxPages Maximum number of page faults of all tasks in job. MaxPagesNode The node on which the maxpages occurred. MaxPagesTask The task ID where the maxpages occurred. MaxRSS Maximum resident set size of all tasks in job. MaxRSSNode The node on which the maxrss occurred. MaxRSSTask The task ID where the maxrss occurred. MaxVMSize Maximum Virtual Memory size of all tasks in job. MaxVMSizeNode The node on which the maxvsize occurred. MaxVMSizeTask The task ID where the maxvsize occurred. MinCPU Minimum (system + user) CPU time of all tasks in job. MinCPUNode The node on which the mincpu occurred. MinCPUTask The task ID where the mincpu occurred. NTasks Total number of tasks in a job or step. EXAMPLES
sstat --format=AveCPU,AvePages,AveRSS,AveVMSize,JobID -j 11 25:02.000 0K 1.37M 5.93M 9.0 sstat -p --format=AveCPU,AvePages,AveRSS,AveVMSize,JobID -j 11 25:02.000|0K|1.37M|5.93M|9.0| COPYING
Copyright (C) 2009 Lawrence Livermore National Security. Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). CODE-OCEC-09-009. All rights reserved. This file is part of SLURM, a resource management program. For details, see <http://www.schedmd.com/slurmdocs/>. SLURM is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. SLURM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. SEE ALSO
sacct(1) sstat 2.3 August 2011 SSTAT(1)
All times are GMT -4. The time now is 05:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy