07-11-2012
Thank you very much, can I can direct the output to a file under my /home/mydir/outputfile, thanks again
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Suppose that I am performing some operation on an sql database. Lets say process of Searching and then if a value is found, updating it... Now, when I have some millions of records on which the operation has to be performed... Does it help to spawn multiple processes each executing the same... (9 Replies)
Discussion started by: Legend986
9 Replies
2. UNIX for Advanced & Expert Users
Hi - I need help. My user crontab is spawning multiple at processes (and multiple mencoder program starts, that exit, then restart, repeatedly), locking up my system.
For example I have this entry in my crontab:
$ sudo crontab -u victoria -e
* * * * * ~/recordings/pvr1
* * * * *... (10 Replies)
Discussion started by: gstuart
10 Replies
3. Shell Programming and Scripting
Hello
I've got a script that creates multiple processes, in ksh, to bcp out 6 tables at a time. In the script, we write messages to the log to show our progress; most of the time, the log messages are nice and neat with one per line, like they should be. But every once in awhile, at random, the... (2 Replies)
Discussion started by: stonemonolith
2 Replies
4. UNIX for Dummies Questions & Answers
Hi guys,
I want to run the multiple scripts at the same time using a ksh script.
For example, I have three scripts to run:
a.ksh, b.ksh and c.ksh
How to start the above 3 scripts simultaneously and then on the completion of the above scripts I have other tasks to schedule.
Thanks
Gary (6 Replies)
Discussion started by: abcabc1103
6 Replies
5. Programming
I'm trying to make a program that will spawn multiple child processes then exit. I'm having trouble figuring out how to do this since after I fork, the child process begins running the program again (never ending).
int main(void){
for(int i = 0; i < 3; i++){
fork();
}... (1 Reply)
Discussion started by: cagney58
1 Replies
6. Programming
I am having problems creating multiple forks. I want create a certain number of forks, each call a program and each wait for a different value. How is this accomplished my loop is not doing the trick.
for (i = 0; i < 5; i++) {
if (fork() < 0) {
//print error
}
... (3 Replies)
Discussion started by: Vikings1201
3 Replies
7. Programming
I have a number of binaries which I currenlty have no control over. They alright data to stdout. I would like to kick off any number of these binaries and capture and process their stdout. Doing this for one process is straight forward for example - comments and error checking removed for... (6 Replies)
Discussion started by: dvales
6 Replies
8. Shell Programming and Scripting
Want to kill multiple processes by name. for the example below, I want to kill all 'proxy-stagerd_copy' processes.
I tried this but didn't work:
>> ps -ef|grep proxy_copy
root 991 986 0 14:45:34 ? 0:04 proxy-stagerd
root 1003 991 0 14:45:49 ? 0:01... (2 Replies)
Discussion started by: catalinawinemxr
2 Replies
9. Solaris
Hello people,
I got one problem with a script.
I have a script which runs every five mins and in the script an ftp process is invoked which sends files to a particular location.
The problem is that the ftp process hangs every now and then which causes the whole script to hang.
As the... (4 Replies)
Discussion started by: m_usmanayub
4 Replies
10. Shell Programming and Scripting
Hi,
I have three files in my IN directory.Each file should be copied 25 times using for loop.Each file processing should run in parallel?How to spawn multiple processes in unix?Any help would be appreciated.
Thanks,
Liyakath (7 Replies)
Discussion started by: liyakathali
7 Replies
LEARN ABOUT CENTOS
machinectl
MACHINECTL(1) machinectl MACHINECTL(1)
NAME
machinectl - Control the systemd machine manager
SYNOPSIS
machinectl [OPTIONS...] {COMMAND} [NAME...]
DESCRIPTION
machinectl may be used to introspect and control the state of the systemd(1) virtual machine and container registration manager systemd-
machined.service(8).
OPTIONS
The following options are understood:
-h, --help
Prints a short help text and exits.
--version
Prints a short version string and exits.
-p, --property=
When showing machine properties, limit the output to certain properties as specified by the argument. If not specified, all set
properties are shown. The argument should be a property name, such as "Name". If specified more than once, all properties with the
specified names are shown.
-a, --all
When showing machine properties, show all properties regardless of whether they are set or not.
-l, --full
Do not ellipsize process tree entries.
--no-pager
Do not pipe output into a pager.
--no-ask-password
Do not query the user for authentication for privileged operations.
--kill-who=
When used with kill-machine, choose which processes to kill. Must be one of leader, or all to select whether to kill only the leader
process of the machine or all processes of the machine. If omitted, defaults to all.
-s, --signal=
When used with kill-machine, choose which signal to send to selected processes. Must be one of the well-known signal specifiers, such
as SIGTERM, SIGINT or SIGSTOP. If omitted, defaults to SIGTERM.
-H, --host
Execute operation remotely. Specify a hostname, or username and hostname separated by "@", to connect to. This will use SSH to talk to
the remote machine manager instance.
-P, --privileged
Acquire privileges via PolicyKit before executing the operation.
The following commands are understood:
list
List currently running virtual machines and containers.
status [ID...]
Show terse runtime status information about one or more virtual machines and containers. This function is intended to generate
human-readable output. If you are looking for computer-parsable output, use show instead.
show [ID...]
Show properties of one or more registered virtual machines or containers or the manager itself. If no argument is specified, properties
of the manager will be shown. If an ID is specified, properties of this virtual machine or container are shown. By default, empty
properties are suppressed. Use --all to show those too. To select specific properties to show, use --property=. This command is
intended to be used whenever computer-parsable output is required. Use status if you are looking for formatted human-readable output.
terminate [ID...]
Terminates a virtual machine or container. This kills all processes of the virtual machine or container and deallocates all resources
attached to that instance.
kill [ID...]
Send a signal to one or more processes of the virtual machine or container. This means processes as seen by the host, not the processes
inside the virtual machine or container. Use --kill-who= to select which process to kill. Use --signal= to select the signal to send.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
ENVIRONMENT
$SYSTEMD_PAGER
Pager to use when --no-pager is not given; overrides $PAGER. Setting this to an empty string or the value "cat" is equivalent to
passing --no-pager.
SEE ALSO
systemd-machined.service(8), systemd-logind.service(8), systemd.special(7).
systemd 208 MACHINECTL(1)