How to incorporate mutiple commands in Autosys commandline on UNIX
Hi,
I am having a problem running multiple commands in a autosys command line. For example I would like to run a perl script first and then add sleep command after that in the same autosys job like below
When I run the above autosys job, it appears to work and sleeps for 180 seconds / 3 minutes. But after 3 minutes it fails with the error in the error log reading "/bin/sh: line 0: exec: Hello: not found"
Why does this happen. Is there any other way of having mutiple commands in a Autosys commanline ?
solaris 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Fire-T200
I need a sed command that tests true when presented with lines that contain either forward and backslash.
input file:
c:/myFile.txt
c:\yourFile.txt
It doesn't appear that sed (in my environment anyway) supports... (4 Replies)
Hi,
I wrote a simple script, which will call other scripts or run commands on a UNIX server. my script has multiple steps/commands with some delay in between.
I usually get some email notifications after the successful execution of each step.
**My intention is to get email alerts when it is... (5 Replies)
Hi,
I am pretty new to the unix community and have encountered a problem that I am trying to solve. I have 2 files one of which is called passwd file that looks like the following
Sample Output
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
... (1 Reply)
Hi folks
Howto do quick remote health check for SAP systems on UNIX commandline? To see if a SAP system is down or in maintenace mode (no login).
I am searching something like "tnsping"/Oracle for SAP systems. (2 Replies)
I need to run multiple commands on remote server using the nohup...
I have tried 2 options
1) rsh <SERVER_NAME> -n "nohup perl $SCRIPTS_DIR/abc.pl ; $SCRIPTS_DIR/xyz.ksh & " &
2) rsh <SERVER_NAME> -n "nohup perl $SCRIPTS_DIR/abc.pl & nohup $SCRIPTS_DIR/xyz.ksh & " &
I need to know if... (2 Replies)
My project uses Autosys.
I am new to this product and I don't know where to start from.
Q1. Please provide me the link where I can get Autosys documentation
Q2. Please refer a good book on Autosys. (Beginner/Intermediate Level) (0 Replies)
ganeti-listrunner(8) Version 2.5.2 ganeti-listrunner(8)NAME
ganeti-listrunner - Run commands in parallel over multiple machines
SYNOPSIS
ganeti-listrunner -l logdir {-x executable | -c shell-cmd} {-f hostfile | -h hostlist} [-a aux-file] [-b batch-size] [-u username] [-A]
DESCRIPTION
ganeti-listrunner is a tool to run commands in parallel over multiple machines. It differs from dsh or other tools in that it asks for the
password once (if not using ssh-agent) and then reuses the password to connect to all machines, thus being easily usable even when public
key authentication or Kerberos authentication is not available.
It can run either a command or a script (which gets uploaded first and deleted after execution) on a list of hosts provided either via a
file (one host per line) or as a comma-separated list on the commandline. The output (stdout and stderr are merged) of the remote execution
is written to a logfile. One logfile per host is written.
OPTIONS
The options that can be passed to the program are as follows:
-l logdir
The directory under which the logfiles files should be written.
-x executable
The executable to copy and run on the target hosts.
-c shell-cmd
The shell command to run on the remote hosts.
-f hostfile
The file with the target hosts, one hostname per line.
-h hostlist
Comma-separated list of target hosts.
-a aux-file
A file to copy to the target hosts. Can be given multiple times, in which case all files will be copied to the temporary directory.
The executable or the shell command will be run from the (temporary) directory where these files have been copied.
-b batch-size
The host list will be split into batches of batch-size which will be processed in parallel. The default if 15, and should be
increased if faster processing is needed.
-u username
Username to connect as instead of the default root username.
-A Use an existing ssh-agent instead of password authentication.
--args Arguments to pass to executable (-x).
EXIT STATUS
The exist status of the command will be zero, unless it was aborted in some way (e.g. ^C).
EXAMPLE
Run a command on a list of hosts:
listrunner -l logdir -c "uname -a" -h host1,host2,host3
Upload a script, some auxiliary files and run the script:
listrunner -l logdir -x runme.sh
-a seed.dat -a golden.dat
-h host1,host2,host3
SEE ALSO dsh(1), cssh(1)REPORTING BUGS
Report bugs to project website (http://code.google.com/p/ganeti/) or contact the developers using the Ganeti mailing list (ganeti@google-
groups.com).
SEE ALSO
Ganeti overview and specifications: ganeti(7) (general overview), ganeti-os-interface(7) (guest OS definitions).
Ganeti commands: gnt-cluster(8) (cluster-wide commands), gnt-job(8) (job-related commands), gnt-node(8) (node-related commands), gnt-
instance(8) (instance commands), gnt-os(8) (guest OS commands), gnt-group(8) (node group commands), gnt-backup(8) (instance import/export
commands), gnt-debug(8) (debug commands).
Ganeti daemons: ganeti-watcher(8) (automatic instance restarter), ganeti-cleaner(8) (job queue cleaner), ganeti-noded(8) (node daemon),
ganeti-masterd(8) (master daemon), ganeti-rapi(8) (remote API daemon).
Ganeti htools: htools(1) (generic binary), hbal(1) (cluster balancer), hspace(1) (capacity calculation), hail(1) (IAllocator plugin),
hscan(1) (data gatherer from remote clusters).
COPYRIGHT
Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Google Inc. Permission is granted to copy, distribute and/or modify 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.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
Ganetiganeti-listrunner(8)