10-13-2008
Spool command in Unix
Hi,
Is there any command in unix similar to spool command in oracle.
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
archive
ARCHIVE(8) System Manager's Manual ARCHIVE(8)
NAME
archive - Usenet article archiver
SYNOPSIS
archive [ -a archive ] [ -f ] [ -i index ] [ -m ] [ -r ] [ input ]
DESCRIPTION
Archive makes copies of files specified on its standard input. It is normally run either as a channel feed under innd(8), or by a script
before expire(8) is run.
Archive reads the named input file, or standard input if no file is given. The input is taken as a set of lines. Blank lines and lines
starting with a number sign (``#'') are ignored. All other lines should specify the name of a file to archive. If a filename is not an
absolute pathname, it is taken to be relative to /var/spool/news.
Files are copied to a directory within the archive directory, /var/spool/news/news.archive. The default is to create a hierarchy that mim-
ics the input files; intermediate directories will be created as needed. For example, the input file comp/sources/unix/2211 (article 2211
in the newsgroup comp.sources.unix) will be copied to /var/spool/news/news.archive/comp/sources/unix/2211.
OPTIONS
-a archive
If the ``-a'' flag is used then its argument specifies the directory to archive in instead of the default.
-f If the ``-f'' flag is used, then all directory names will be flattened out, replacing the slashes with periods. In this case, the
file would be copied to /var/spool/news/news.archive/comp.sources.unix/2211.
-i If the ``-i'' flag is used, then archive will append one line to the specified index file for each article that it copies. This
line will contain the destination name and the Message-ID and Subject headers.
-m Files are copied by making a link. If that fails a new file is created. If the ``-m'' flag is used, then the file will be copied
to the destination, and the input file will be replaced with a symbolic link pointing to the new file.
-r By default, archive sets its standard error to /var/log/news/errlog. To suppress this redirection, use the ``-r'' flag.
EXIT STATUS
If the input is exhausted, archive will exit with a zero status. If an I/O error occures, it will try to spool its input, copying it to a
file. If there was no input filename, the standard input will be copied to /var/spool/news/out.going/archive and the program will exit.
If an input filename was given, a temporary file named input.bch (if input is an absolute pathname) or /var/spool/news/out.going/input.bch
(if the filename does not begin with a slash) is created. Once the input is copied, archive will try to rename this temporary file to be
the name of the input file, and then exit.
EXAMPLES
A typical newsfeeds(5) entry to archive most source newsgroups is as follows:
source-archive
:!*,*sources*,!*wanted*,!*.d
:Tc,Wn
:/usr/lib/news/bin/archive -f -i
/usr/spool/news/news.archive/INDEX
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.14, dated 1996/10/29.
SEE ALSO
newsfeeds(5).
ARCHIVE(8)