Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Redirection of output to a log file Post 302227401 by Franklin52 on Thursday 21st of August 2008 06:32:49 AM
Old 08-21-2008
What output? Any output of your script should be in the file now....
Post the contents of batch.sh.

Regards
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remote server file output redirection

Hi, I want ssh to the remote server and then execute ls and redirect the output to the file in remote server itself like ssh root@$server `ls /var/log/users.txt > root@$server:/home/users.txt` Can you please let me know the correct syntax for it. Thanks in advance (2 Replies)
Discussion started by: mohitmoudgil
2 Replies

2. UNIX for Dummies Questions & Answers

Output file redirection

Suppose I have a file named a When I write cat a>a The following error message is displayed cat: a: input file is output file and my file a is truncated to zero size. Also the exit status of the last command is 1 Can someone tell me what actually happens when I do so? (1 Reply)
Discussion started by: aagajaba
1 Replies

3. UNIX for Dummies Questions & Answers

Capping output redirection log file length

I am trying to write a script which will output notifications to a logfile, but I would like to cap the logfile to, let's say, 200 lines. Specifically I am using custom firmware, DD-wrt, on my router and I am implementing a script to connect to my work vpn. I have a loop that pings a computer... (2 Replies)
Discussion started by: joemommasfat
2 Replies

4. Shell Programming and Scripting

awk output redirection to file

I have a system stat command running which generates data after 5 sec or so. I pass this data to awk and do some calculation to present the data differently. Once done now I want to pass this data to file as and when generated but doesn't work..unless the first command completes successfully.... (6 Replies)
Discussion started by: learnscript
6 Replies

5. Shell Programming and Scripting

Redirection output

Hi there I have a script that runs but it outputs everything onto the screen instead of a file. I've tried using the > outputfile.txt however all it does is dump the output to the screen and creates an outputfile.txt but doesn't put anything in that file. Any help would be appreciated ... (6 Replies)
Discussion started by: kma07
6 Replies

6. Shell Programming and Scripting

Output redirection

We have an application here that does some table queries and then prints the result on screen. I do not have the code of this application (which i will just call "queryCommand"), but what it does is that you call it with some parameters and it prints some info about the query and then the... (5 Replies)
Discussion started by: jolateh
5 Replies

7. Shell Programming and Scripting

output redirection to existing file question

So I have a existing file that I used the uniq command on and I need to save the output to the same file without changing the file name. I have tried $ uniq filename > filename then when I cat the file it then becomes blank like there is nothing inside. any help would be much appreciated... (0 Replies)
Discussion started by: drew211
0 Replies

8. Shell Programming and Scripting

Output redirection of c binary file to a file in shell script is failing

I am struck up with a problem and that is with output redirection. I used all the ways for the redirection of the output of c binary to a file, still it is failing. Here are the different ways which I have used: ./a.out | tee -a /root/tmp.txt 2>&1 ./a.out | tee -a /root/tmp.txt 1>&1 ./a.out |... (2 Replies)
Discussion started by: Maya29988
2 Replies

9. Shell Programming and Scripting

output redirection

Hi all I was wondering if there was a slicker way of doing this without the file - awk '{print $2}' FS=":" "${FILE}" > "${TMPFILE}" { read M_GRP_ID || m_fail 1 "Error: Read failed 1 (${FUNCNAME})" read M_GRP_WAIT || m_fail 1 "Error: Read failed 2 (${FUNCNAME})" }... (6 Replies)
Discussion started by: steadyonabix
6 Replies

10. Shell Programming and Scripting

Command output redirection to file issues

Hi, I have a peculiar issue w.r.t redirecting the command output to a file when using loop. I am redirecting command output to same file in a series of if condition statements, but if one block of if condition statement writes the log to the file , the subsequent block of if condition... (7 Replies)
Discussion started by: ananan
7 Replies
sabcmd(1)						      General Commands Manual							 sabcmd(1)

NAME
sabcmd - a command line interface to Sablotron XSLT processor SYNOPSIS
sabcmd [options] <stylesheet> [<input> [<output>]] [assignments] sabcmd [options] -batch-xml <input> [<stylesheet> [<output>]]+ [assignments] sabcmd [options] -batch-xsl <stylesheet> [<input> [<output>]]+ [assignments] DESCRIPTION
sabcmd is a command line interface to Sablotron XSLT processor. You can use is to transform XML files with XSLT stylesheets. The only required parameter is a stylesheet; this is a URI of an XSLT stylesheet to be used for the transformation process. If you omit an input file, the standard input is used. In addition, you can specify an output file. If no output file is given, the output is sent to the standard output. sabcmd can also run in a batch mode to process single input file with multiple stylesheets (--batch-xml) or to apply a stylesheet to multi- ple input files (--batch-xsl). Assignments allow to pass parameters and named buffers to the processor. The assignments have always the form of name1=value1 name2=value2 ... where name is either an ASCII string for named buffers or an ASCII string with the leading '$' sign for parameters. (Note that you need to use the right quotes to prevent the shell interpreter from performing an expansion of variables). OPTIONS
Option can be of two forms - short or long. If some options have values, the values are separated with a whitespace for short options and with a equal sign ('=') for long options. -L mylog.log is the same as --log-file=mylog.log COMMON OPTIONS -x, --batch-xml multiple stylesheets, single input file -s, --batch-xsl multiple input files, single stylesheet -b, --base=NAME set the hard base URI to NAME --debug-options display the information on debugging options -?, --help display this help message -L, --log-file=NAME set the log file, turns logging on -m, --measure measure the time of processing -v, --version display the version information DEBUG OPTIONS --debug display results of the command line parse -t, --times=COUNT run sabcmd the specified number of times -f, --flags pass flags given to SablotSetOptions() -F, --use-SPF use SablotProcessFiles() -S, --use-SPS use SablotProcessStrings(). Give 2 args (stylesheet, input). Precede each by @. --use-SPS-on-files use SablotProcessStrings() on the contents of the given files. ENVIRONMENT
When the <xsl:sort> instruction is used without the 'lang' attribute, common locale related environment variables apply.. BUGS
There are no known bugs related to sabcmd currently. Most of bugs you can meet are related to Sablotron processor itself. In such a case, please take a look at Sablotron's home website (www.gingerall.org) or contact us at <sab-bugs@gingerall.cz>. AUTHOR
Pavel Hlavnicka <pavel@gingerall.cz> June 17, 2002 sabcmd(1)
All times are GMT -4. The time now is 02:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy