Sponsored Content
Full Discussion: Use of "2>"
Top Forums UNIX for Dummies Questions & Answers Use of "2>" Post 302085475 by igandu on Thursday 17th of August 2006 11:51:26 AM
Old 08-17-2006
Use of "2>"

Hello,

What is the use of 2> for redirecting output?

Regards,
Indra
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

3. Shell Programming and Scripting

ps -ef | grep "string1" "string2" " "string3"

Hi all, can any one suggest me the script to grep multiple strings from ps -ef pls correct the below script . its not working/ i want to print OK if all the below process are running in my solaris system. else i want to print NOT OK. bash-3.00$ ps -ef | grep blu lscpusr 48 42 ... (11 Replies)
Discussion started by: steve2216
11 Replies

4. 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

5. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

6. Solaris

The slices "usr", "opt", "tmp" disappeared!!! Help please.

The system don't boot. on the screen appears following: press enter to maintenance (or type CTRL-D to continue)...I checked with format command. ... the slices "0-root","1-swap","2-backup" exist. ...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies

7. 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

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
PEXEC(1)							   User Commands							  PEXEC(1)

NAME
pexec - executing commands in parallel SYNOPSIS
pexec [options] [-c|-m] [--] command [arguments] | 'compound command' DESCRIPTION
Execute commands or shell scripts in parallel on a single host or on remote hosts using a remote shell. OPTIONS
General options: -h, --help Gives general summary about the command line options. --long-help Gives a detailed list of command line options. --version Gives some version information about the program. -s, --shell <shell> Full path (e.g. /bin/sh) of the shell or interpreter to be used for script execution. -c, --shell-command Use the specified shell to interpret the command(s) instead of direct execution. -m, --multiple-command Allow multiple individual shell command scripts to be executed in parallel with the variation of the parameters. -e, --environment <variable> Name of an environmental variable which is set to the respective parameter before each execution. -n, --number <number> The maximal number of processes running simultaneously. The <number> itself can even be a complex specification of remote hosts (see documentation for more details). -C, --control <port> The control port of a hypervisor daemon (full path of a UNIX socket or an INET host specification). -p, --list <list> The single-argument form of main parameter list. -r, --parameters <list> The multiple-argument form of the main parameter list. -f, --listfile <file> The main parameter list file. -w, --column <index> The column index from where the parameters should be taken if they are read from a parameter file. -t, --complete Threat the whole line as a single parameter if the parameters are read from a file. -z, --nice Sets the scheduling priority of pexec and all children (executed processes) to the priority defined by this nice value. -- A marker after which the command to execute begins. Redirecting standard input, output and error: -i, --input <input> The (optionally formatted) name of the input file which is used for redirecting the standard input. -o, --output <output> The (optionally formatted) name of the output file which is used for redirecting the standard output. -u, --error <output> The (optionally formatted) name of the output error file, which is used for redirecting the standard error. -R, --normal-redirection Equivalent to specifying --output -, --error - and --input /dev/null. -a, --output-format <format> The format of the final standard output redirection if the output of all of the processes are gathered into the same file. -b, --error-format <format> The same final redirection format for the standard error. -x, --omit-newlines Disable automatic newlines after the output and error formats. Execution using remote hosts: -g, --remote-shell <remote_shell> The name or full path of the remote shell to be used for building the tunnel between the local and the peer host(s). Default: ``/usr/bin/ssh''. -P, --pexec <pexec> The full path of the pexec program on the remote hosts. If this option is omitted, pexec tries to figure out from the invoking syn- tax and/or the current path. -T, --tunnel Internal use only (pexec will start in tunnel daemon mode). Remote control, mutual exclusions and atomic command execution: -y, --bind <port> This option lets pexec to be remote controlled via INET or UNIX domain sockets. -E, --pexec-connection-variable <env> This option overrides the default environment name PEXEC_REMOTE_PORT to the specified value, which is used by the ``-p|--connect auto'' combination to determine the control socket with which the running pexec instance can be controlled. -j, --remote Used to remote control and/or poll the status of other running instances of pexec. -p, --connect <port> Remote control port to connect to. -t, --status Prints the actual status of the running jobs in a human-readable form. -l, --lock <mutex> Locks the specified mutex (if the mutex is not locked by someone else, otherwise it will block until the mutex is released). -u, --unlock <mutex> Unlocks the specified mutex. -m, --mutex <mutex> Name of the mutex. -d, --dump <filename> Dump the content of the given file to standard output, if ``-m|--mutex'' is given, this will be atomic. -s, --save <filename> Save the content of standard input to the given file, if ``-m|--mutex'' is given, this will be atomic. -a, --atomic <command> Execute the given command. If ``-m|--mutex'' is given, the exectution is going to be atomic with respect to that mutex. Hypervisor mode: -H, --hypervisor Starts pexec in hypervisor mode. -C, --control <port> The control port used by the hypervisor. -l, --load <window> Use load also to limit the number of simultaneous processes with the specified load average interval (0, 1 or 2, or 1min, 5min or 15min, respectively). -f, --fifo First in first out queue processing. -s, --lifo Last in first out (stack) queue processing (default). Logging: -L, --log <file> The name of the log file. -W, --log-level <level> The logging level. -V, --verbose Increase the log level by one. REPORTING BUGS
Report bugs to <apal@szofi.elte.hu> COPYRIGHT
Copyright (C) 2007, 2008-2009; Pal, Andras <apal@szofi.elte.hu> This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. This software was written by Andras Pal. The core part was written while working for the Hungarian-made Automated Telescope (HAT) project to make the data processing more easier and therefore find many-many extrasolar planets. See more information about this project: http://hatnet.hu. Another internal libraries (e.g. numhash.[ch]) were primarily written for other projects. SEE ALSO
The full documentation for pexec is maintained as a Texinfo manual. If the info and pexec programs are properly installed at your site, the command info pexec should give you access to the complete manual. pexec 1.0rc8 (2009.07.02) June 2012 PEXEC(1)
All times are GMT -4. The time now is 06:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy