Sponsored Content
Full Discussion: Spool command in Unix
Top Forums UNIX for Dummies Questions & Answers Spool command in Unix Post 302247103 by manosubsulo on Wednesday 15th of October 2008 02:39:34 AM
Old 10-15-2008
Thanx,

As per suggestion its working fine but it re-directing everthing to a file. i need to display the results also in the screen.

For eg: File.sh
Code:
exec 1>/tmp/output.txt
ls -ltr
exit

when i run this script, its redirect to a file /tmp/output.txt but it not displaying in the screen. what needs to do ?
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

SQL Spool equivalent command in DOS

This question maybe in the wrong category but I'm posting here due to urgency. In DOS is there a command to perform a similar function to spool command in SQL or Script command in UNIX? I want to print all command line output to a file but I don't want to use the echo command for each line. ... (2 Replies)
Discussion started by: stevefox
2 Replies

2. Shell Programming and Scripting

code to FTP the spool file from Sqlplus to the unix server.

I have a sqlplus report and inside that report I have the following piece of code to mail the report output to the email id. My requirement is, instead of emailing the output I want to FTP that script to a different unix server (say ip as 10.10.1.1). How to modify this code to FTP the spool file... (0 Replies)
Discussion started by: vprevin
0 Replies

3. Shell Programming and Scripting

how to spool a unix file

hi, can anyone help me by saying how can i spool a unix file.. do we need to specify the pathname as such to spool the file .. right now, i tried giving like spool filename in the sql prompt.. but its not giving me the required output even if i can see that the command is being executed.. ... (2 Replies)
Discussion started by: kripssmart
2 Replies

4. Shell Programming and Scripting

manipulate & format the output of spool command

Hi All, I am spooling the data some sql queries into a single file but wanted to know how to format the data of the file generated by spool. #!/bin/sh unset -f USAGE USAGE () { clear echo "############################USAGE#######################\n" echo "Incorrect number of... (2 Replies)
Discussion started by: ss_ss
2 Replies

5. UNIX for Dummies Questions & Answers

Spool setting in unix environment for SAP

Hi All, Please help me regarding this. we have our SAP system with unix environment. Spool setting in unix ,we are not able to cancel any unix spool from SIDADM because the spool user is nor SIDADM. for example :- Any idea how to make the spool from OS level as SIDADM, Please suggest.... (3 Replies)
Discussion started by: dravi_laxmi
3 Replies

6. Solaris

Need to know command to delete more than 3 million files from /var/spool/clientmqueue

Hi I need to delete more than 3 million files from /var/spool/clientmqueue. When I give the following command to delete the files, I get the error # pwd /var/spool/clientmqueue # rm -f * /usr/bin/rm: arg list too long Please tell me how can I delete the files (5 Replies)
Discussion started by: sb200
5 Replies

7. UNIX for Dummies Questions & Answers

Like spool in UNIX

Hi, Can you please help me how to spool the unix commands executed in my client and its output to a file in local machine. Basically, I want to save all OS commands executed in my session and its output into a file from my client something like we do oracle with "SPOOL". Thanks in advance.... (2 Replies)
Discussion started by: pointers
2 Replies

8. Shell Programming and Scripting

UNIX/SQL loop to spool files!!

I want to spool files from unix using a sql script that would take values from another sql query within the KSH script.. unix loop select order_date from date_tbl for each order_Date i need to call this spool script with the value sqlplus scott/tiger@order_db @/ordspool/order_date.sql... (2 Replies)
Discussion started by: vr23
2 Replies

9. Shell Programming and Scripting

Spool issue in unix

Hi Friends, I am trying to spool the data from Teradata. The rpoblem which i am facing is , the coulmn data is appended with ".(dot)" for some coulmns. Please find the below data : data i want in file : 1|BANG|KINR|3456 2|KIBNJ|UIE|6347 3|JEEM|Y34E|3874 data which is spooling... (6 Replies)
Discussion started by: i150371485
6 Replies

10. UNIX and Linux Applications

UNIX spool command not extracting complete record from the Oracle table

Hello All, I'm trying to spool an oracle table data into a csv file on unix server but the complete record is not being extracted. The record is almost 1000 characters but only 100 characters are being extracted and rest of the data getting truncated. I'm setting below options : SET... (4 Replies)
Discussion started by: venkat_reddy
4 Replies
UUX(1)							      General Commands Manual							    UUX(1)

NAME
uux - unix to unix command execution SYNOPSIS
uux [ - ] [ -cClLnprz ] [ -aname ] [ -ggrade ] [ -xdebug ] command-string DESCRIPTION
Uux will gather zero or more files from various systems, execute a command on a specified system and then send standard output to a file on a specified system. The command-string is made up of one or more arguments that look like a Shell command line, except that the command and file names may be prefixed by system-name!. A null system-name is interpreted as the local system. File names may be one of(1) a full path name; (2) a path name preceded by ~user where user is a login name on the specified system and is replaced by that user's login directory; (3) a path name prefixed by ~; where ~ is expanded to the system's public directory (usually /usr/spool/uucppublic); (4) a partial pathname, which is prefixed by the current directory. As an example, the command uux "!diff usg!/usr/dan/file1 pwba!/a4/dan/file2 > !~/dan/file.diff" will get the file1 and file2 files from the ``usg'' and ``pwba'' machines, execute a diff(1) command and put the results in file.diff in the local /usr/spool/uucppublic/dan/ directory. Any special shell characters, such as <>;|, should be quoted either by quoting the entire command-string, or quoting the special characters as individual arguments. Uux will attempt to get all files to the execution system. For files that are output files, the file name must be escaped using parenthe- ses. For example, the command uux a!wc b!/usr/file1 (c!/usr/file2 ) get /usr/file1 from system ``b'' and send it to system ``a'', perform a wc command on that file and send the result of the wc command to system ``c''. Uux will notify you by mail if the requested command on the remote system was disallowed. This notification can be turned off by the -n option. The following options are interpreted by uux: - The standard input to uux is made the standard input to the command-string. -aname Use name as the user identification replacing the initiator user-id. -c Do not copy local file to the spool directory for transfer to the remote machine (this is the default). -C Force the copy of local files to the spool directory for transfer. -ggrade Grade is a single letter/number, from 0 to 9, A to Z, or a to z; 0 is the highest, and z is the lowest grade. The default is A; by comparison uucp(1) defaults to n and mail is usually sent at grade C. Lower grades should be specified for high-volume jobs, such as news. -l Try and make a link from the original file to the spool directory. If the link cannot be made, copy the file. -n Do not notify the user when the command completes. -p Same as -: The standard input to uux is made the standard input to the command-string. -r Do not start the file transfer, just queue the job. -xdebug Produce debugging output on stdout. The debug is a number between 0 and 9; higher numbers give more detailed information. Debugging is permitted only for privileged users (specifically, those with read access to L.sys(5). -z Notify the user only if the command fails. -L Start up uucico with the -L flag. This will force calls to be made to local sites only (see uucico(8C)). FILES
/usr/spool/uucp spool directories /etc/uucp/* UUCP configuration data. SEE ALSO
uucp(1), uucico(8), uuxqt(8). WARNING
For security reasons, many installations will limit the list of commands executable on behalf of an incoming request from uux. Many sites will permit little more than the receipt of mail (see mail(1)) via uux. BUGS
Only the first command of a shell pipeline may have a system-name!. All other commands are executed on the system of the first command. The use of the shell metacharacter * will probably not do what you want it to do. The shell tokens << and >> are not implemented. When invoking uux from csh(1), the `!' character must be prefixed by the `' escape to inhibit csh's history mechanism. (Quotes are not sufficient.) 7th Edition October 22, 1996 UUX(1)
All times are GMT -4. The time now is 07:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy