Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Output of 2 commands into 1 file Post 302110625 by matrixmadhan on Wednesday 14th of March 2007 07:20:01 AM
Old 03-14-2007
Quote:
Originally Posted by enuenu
Thanks 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.

it would work,

Code:
(date ; ls ) > newfile

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Output all commands to logfiles ???

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

Combine Two Commands Output

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

Logging commands and output

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

Output results of multiple commands to a file

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

How can I output all previous Unix commands in Solaris to a file??

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

Reading UNIX commands from file and redirecting output to a file

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

Redirecting the multiple commands output to single file

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

Script which telnets to a device, runs commands and prints output to a file

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

Compare output from two commands

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

Arranging output for 2 commands

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
uuxqt(1M)																 uuxqt(1M)

NAME
uuxqt - execute remote uucp or uux command requests SYNOPSIS
system] debug_level] DESCRIPTION
The commands, including are targeted for removal from HP-UX; see the below. executes remote job requests generated by use of the command (see uux(1)). generates files and places them in the spool directory, where searches for them. For each file, determines whether the required data files are available and accessible, and if file commands are per- mitted for the requesting system. The file is used to validate file accessibility and command execute permission. Then performs execution of the commands. Two environment variables are set before the command is executed: is the machine that sent the previous job and is the user who sent the job. These can be used in writing commands that remote systems can execute to provide information, auditing, or restrictions. recognizes the following options: Execute commands on the specified system. Produce debugging output on standard output. debug_level is a single digit between 0 and 9. The higher the number, the more detailed debugging information returned. WARNINGS
Use of commands, including is discouraged because they are targeted for removal from HP-UX. Use ftp(1) or rcp(1) instead. FILES
SEE ALSO
uucp(1), uustat(1), uux(1), uucico(1M). Tim O'Reilly and Grace Todino, O'Reilly & Associates, Inc. USA. Grace Todino and Dale Dougherty, O'Reilly & Associates, Inc. USA. TO BE OBSOLETED uuxqt(1M)
All times are GMT -4. The time now is 03:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy