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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
paw-demos
PAW-DEMOS(1) General Commands Manual PAW-DEMOS(1)
NAME
paw-demos - run PAW demonstrations
SYNOPSIS
paw-demos [options] [example_num [test_num]]
DESCRIPTION
paw-demos is a script to run the demonstrations of PAW in the paw-demos package. It will create a demo directory (by default
$HOME/paw-demos), copy the demos from /usr/share/paw-demos to this directory, and run them. Both examples and tests are available.
example_num is the number of the example to start with; examples are skipped if example_num > 31. test_num is the number of the test to
start with; tests are skipped if test_num > 8. Note that the first example is numbered 1 but the first test is numbered 0.
OPTIONS
--batch
Run demos in batch mode; output to PostScript. The resulting output files are placed into a "linux" subdirectory of the demo direc-
tory.
--clean
Clean the demo directory given by the --dir option (or the default directory if --dir is not given). This option causes exam-
ple_num, test_num, --batch, and --driver to be ignored.
--dir dir
Specify the directory in which to run the PAW demos, relative to $HOME. If it does not already exist, it will be created and the
demos copied to it from the directory /usr/share/doc/paw-demos/examples. The default is $HOME/paw-demos.
--display display
Specify the display to use. The default is the current value of the $DISPLAY environment variable.
--driver driver
Specify a graphics driver. Available options are "X11" for pawX11 and "++" for paw++.
--help Show a summary of options.
FILES
/usr/share/paw-demos contains the PAW demonstrations.
$HOME/paw-demos is the default directory in which to run the demos.
SEE ALSO
paw(1), paw++(1)
AUTHOR
This manual page and the paw-demos script that it describes were written by Kevin McCarty <kmccarty@debian.org> for the Debian GNU/Linux
system (but may be used by others). The demos themselves were written by various PAW contributors.
COPYRIGHT
(C) Copyright Kevin McCarty, 2003.
April 23, 2003 PAW-DEMOS(1)