02-24-2012
Will the commands all be running concurrently backgrounded?
You could use >> instead of > but if all the commands are running concurrently, the output from each command may be jumbled together with the output of the others. If the command execute sequentially, this won't be a problem.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
If I wanted to redirect output to multiple log files, what would be the best way to do that?
echo "Unix is awesome" >>unixgod.log >>unixgod.log (3 Replies)
Discussion started by: darthur
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
1.some_command > logfile1 2>&1 will redirect everything to the file logfile1 without displaying the output of the command on the screen.
2.some_command | tee logfile1 | tee logfile2will redirect the output to logfile1 and logfile2, as well as display the output of the command on the... (1 Reply)
Discussion started by: akhila
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
I want to output the results of multiple commands to a single file.
I use simple Ping, telnet commands to check the connectivity to many servers.
Can i execute all the commands and write the output to a file instead of executing them one by one?
Thanks
Ashok (2 Replies)
Discussion started by: ashok.k
2 Replies
4. Shell Programming and Scripting
I have a Bourne Shell script that is normally run as a background job and redirects it's output to a file internally (using exec >>); I use "set -x" to capture each command which provides me with a nice shell execution log if it all goes to pieces.
I now also need to be able to also run this as... (4 Replies)
Discussion started by: AncientCoder
4 Replies
5. Shell Programming and Scripting
Hi All
I have written the following script:
#!/bin/ksh
while read cmdline
do
echo `$cmdline`
pid="$cmdline"
done<commands.txt
===========
commands.txt contains:
ps -ef | grep abc | grep xyz |awk '{print $2};
My objective is to store the o/p of the command in a variable and do... (8 Replies)
Discussion started by: rahulparo
8 Replies
6. UNIX for Dummies Questions & Answers
Hi There,
I have a cronjob that executes a small script (few lines) that I am certain can be achieved in a single line.
The functional objective is actually really simple;
cmd var1
The '1' in 'var1' is actually derived from date (day of month) but the snag is when working with 1-9 I... (3 Replies)
Discussion started by: Random79
3 Replies
7. Shell Programming and Scripting
Hi,
I have 3 files with one column value as shown
File: a.txt
------------
Data_a1
Data_a2
File2: b.txt
------------
Data_b1
Data_b2
Data_b3
Data_b4
File3: c.txt
------------
Data_c1
Data_c2
Data_c3
Data_c4
Data_c5 (6 Replies)
Discussion started by: vfrg
6 Replies
8. Post Here to Contact Site Administrators and Moderators
Hi All,
I am trying to redirect the grep output to multiple files, can you please help with that.
Below is the command im using to match my pattern
grep \<proxyType\>$PxyType $DIR/EndureFiles.json > File_Name*.json
Note : $DIR and $PxyType is already defined in my script
Im able... (0 Replies)
Discussion started by: Deena1984
0 Replies
9. Shell Programming and Scripting
Hi,
I have a following code in which I am unable to redirect to multiple files. Can anybody please help with some corrections
awk -F, '{ if ( substr($1,26,2)=="02" && substr($1,184,14)=="MTSCC_VALFIRST") {
array1++
array2++
array3++
}
else if (substr($1,26,2)=="03" &&... (4 Replies)
Discussion started by: siramitsharma
4 Replies
10. UNIX for Beginners Questions & Answers
I am trying to consolidate multiple information files (<hostname>.Linux.nfslist) into one file so that I can import it into Excel. I can get the file contents with cat *Linux.nfslist >> nfslist.txt. I need each line prefaced with the hostname. I am unsure how to do this.
--- Post updated at... (5 Replies)
Discussion started by: Kentlee65
5 Replies
LEARN ABOUT SUSE
lyxclient
LYXCLIENT(1) lyxclient 1.6.5 LYXCLIENT(1)
NAME
lyxclient - send commands to a running LyX editor
SYNOPSIS
lyxclient [ options ]
DESCRIPTION
When LyX starts, it creates a unique, per-process local socket in the temporary directory through which commands can be sent. That is, it
can act like a server, accepting connections from clients. lyxclient can be used as such client. lyxclient will take care of all connection
and communication protocol details, leaving you (or your app) free to concentrate on what you want to send to LyX.
SERVER IDENTIFICATION OPTIONS
lyxclient must first identify to which server (i.e. a running LyX) commands are to be sent. The following options are used to specify the
server.
-p pid
specify the pid of the running LyX process to which lyxclient should send commands.
-a socket_address
specify explicitly which socket special file should be used. These special files are located inside lyx_tmpdir<lyx_pid><hash>, in the
temporary directory. There is one per running LyX process.
-t tmp_dir
if LyX is configured to use a temporary directory other than /tmp, you must inform lyxclient of this.
If neither -a nor -p are invoked, lyxclient will search for sockets in /tmp (or tmp_dir if the -t option is used) and use the first socket
to which it can connect. This is safe if you are running only one LyX process at any one time.
COMMAND MODE OPTIONS
lyxclient can send commands to LyX from both the command-line and from standard input. LyX commands documentation can be found in LyX Help
menu.
-c command
send a single command, print LyX information to standard output and exit. LYXCMD prefix is needed in the given command.
-g file line
this is simply a wrapper for the command 'server-goto-file-row file line'. It is used by the DVI previewer to elicit inverse DVI
search.
If neither -c nor -g are used, lyxclient will regard any standard input as commands to be sent to LyX, printing LyX's responses to standard
output. Commands are separated by newlines (the '
' character). To finish communication and terminate the lyxclient process, send the com-
mand 'BYE:'.
MISCELANEOUS OPTIONS
-n name
when starting communication, lyxclient sends an idenfifier string to LyX. By default, this string is "PPID>PID", where PPID is lyx-
client's parent pid and pid is lyxclient's pid. Use this option to override this default.
-h print the lyxclient version and summarize its usage.
ENVIRONMENT
LYXSOCKET
can be used to specify the socket special file that must be used. LyX sets this variable. It is overridden by the -a option.
SEE ALSO
lyx(1), xdvi(1), LFUNs.lyx.
AUTHORS
Joao Luis M. Assirati <assirati@fma.if.usp.br> is the principal author of lyxclient.
Version 1.6.5 2009-12-05 LYXCLIENT(1)