03-14-2007
Thanks kumasaravana_s, what you say is correct but is not quite what I was after. Thanks for trying to help me. I wanted to for example show the output of the command date at the top of the file, followed by the the output of the command ls in the same file.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Dear Forum,
My .cshrc settings are embedded in a massive jungle of code distributed all over the place, where finding anything is a "needle in a haystack" daily pain in the royal backside.
Is there anyway, i can dump out every command and file executed to STDOUT after sourcing my .cshrc ???
... (2 Replies)
Discussion started by: fawqati
2 Replies
2. Shell Programming and Scripting
How i can combine output of two commands in one file.......i tried this but it is not working although each command is working good seperately.....
head -1 filename | tail -1 filename
i think there is problem with command concatenator? (16 Replies)
Discussion started by: 33junaid
16 Replies
3. Solaris
I'm looking for a CLI utility that will capture all the commands you type at the Solaris CLI (and their output) into a file. I'm sure it's called "scripter", but I can't find anything on a command called scripter.
Does anyone know of a such a command?
Your help will be greatly... (3 Replies)
Discussion started by: soliberus
3 Replies
4. 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
5. Solaris
Hello friends:
I login to solaris with a username/Password and I can see quite a lot of previous I use dbefore, it accumulates a lot, I hope to output them into a Command.txt file as reference, not copy/paste 1 by 1, is there any way I can collect all commands in batch then put into a file,
... (3 Replies)
Discussion started by: sunnysunnysunny
3 Replies
6. 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
7. UNIX for Dummies Questions & Answers
Hi,
I am new to shell scripting and have a question. I would like to redirect the output of multple commands to single file, From what I read from the bash manpage and from some searching it seems it cannot be done within the shell except setting up a loop. Is it?
I am running all clearcase... (1 Reply)
Discussion started by: saku
1 Replies
8. Shell Programming and Scripting
I am connecting to a device using telnet, I want my script to perform certain commands : ie- show device , show inventory..etc and write the output it sees from the terminal to a file.
this is what I have got :
#!/usr/bin/expect --
set running 1
spawn telnet <ip address>
expect ... (1 Reply)
Discussion started by: samantha123
1 Replies
9. Shell Programming and Scripting
Hello folks,
I would like ask for a help in one script I'm currently working on.
Main goal is to compare size of file available on remote site and file already downloaded (check if downloaded file is complete and non corrupted).
# Check if files were downloaded correctly
for FILES in... (6 Replies)
Discussion started by: brusell
6 Replies
10. Shell Programming and Scripting
I am trying to run 2 sets of commands but want their output in a particular format.
The 2 commands are :
md5sum $WAR_DIR/$war
and
java -jar $WAR_DIR/$war | grep build.release.version | awk '{print $3}'
The first command gives an output of
5f5261a33b92a36f80218cf14e8271ad ... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies
LEARN ABOUT DEBIAN
cheetah
CHEETAH(1) General Commands Manual CHEETAH(1)
NAME
cheetah - Python template command-line tool
SYNOPSIS
cheetah, cheetah-compile
cheetah COMMAND [options] FILE...
cheetah-compile [options] FILE...
DESCRIPTION
This manual page documents briefly the cheetah command-line tool. This manual page was written for the Debian distribution because the
original program does not have a manual page.
cheetah is a Python-powered template engine and code generator. It can be used as a standalone utility or it can be combined with other
tools. Cheetah has many potential uses, but web developers looking for a viable alternative to ASP, JSP, PHP and PSP are expected to be its
principle user group.
The cheetah command-line tool is the standalone utility portion of the software suite. cheetah-compile is a convenience script that for
the "cheetah compile ..." command. The utility accepts a single command possible options and a list of files. If FILE is a single "-",
read standard input and write standard output.
COMMANDS
The possible cheetah commands are listed below. You may abbreviate the command to the first letter; e.g., 'h' == 'help'.
compile
Compile template definitions
fill Fill template definitions
help Print commands help message
options
Print options help message for compile and fill commands
test Run regression tests
version
Print version number
OPTIONS
The options for cheetah apply to the compile and fill commands. A summary of options is included below.
--idir DIR
Input directories(default: current dir)
--odir ODIR
Output directories (default: current dir)
--iext IEXT
Input extension. The default input extension for both the compile and fill commands is "tmpl".
--oext OEXT
Output extension. The default output extension for the compile command is "py". The default output extension for fill is "html".
-R Recurse subdirectories looking for input files
--debug
Print lots of diagnostic output to the standard error file descriptor
--env Print the environment in the searchList
--flat No destination subdirectories
--nobackup
Do not make backups
--pickle FILE
unpickle FILE and put that output in the searchList
--stdout, -p
Output to standard output file descriptor (pipe)
SEE ALSO
pydoc(1)
The programs are documented fully on the project website http://cheetahtemplate.sourceforge.net. You can also browse the Python library
files and their docstring descriptions by using the standard pydoc utility.
AUTHOR
This manual page was written by Chad C. Walstrom <chewie@debian.org>, for the Debian project and is dedicated to the Public Domain.
2005 Apr 04 CHEETAH(1)