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)
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)
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)
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)
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)
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)
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)
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)
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)
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 OSF1
lprm
lprm(1) General Commands Manual lprm(1)NAME
lprm - Removes requests from the line printer spooling queue
SYNOPSIS
lprm [-Pprinter] [-] [request_ID...] [user...]
The lprm command removes one or more requests from a printer's spool queue.
OPTIONS
Removes all requests that a user owns. If specified by a user with superuser authority, the spool queue is emptied entirely. Specifies
the queue associated with a specific printer; otherwise, the default printer or the value of the PRINTER variable in the environment is
used.
DESCRIPTION
Because the spooling directory is protected from users, using lprm is normally the way a user can remove a request.
The lprm command without any arguments deletes the currently active request if it is owned by the user who invoked lprm.
The - flag removes all requests from the user issuing the command. If a user who has superuser authority uses this flag, the spool queue is
emptied entirely. The owner is determined by the user's username and hostname on the machine where the lpr command was invoked.
You can remove an individual request from a queue by specifying its request ID. (You can obtain the request ID by using the lpq or lpstat
commands.) Specifying one or more users removes any requests queued belonging to those users. This works only for a user with superuser
authority.
The lprm command is silent if there are no requests in the queue that match the request list.
The lprm command kills an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automati-
cally restarted upon completion of file removals.
NOTES
Because race conditions are possible in the update of the lock file, the currently active request may be incorrectly identified.
DIAGNOSTICS
The user tried to remove files that belong to another user.
EXAMPLES
To remove a request from the default queue by specifying the request ID, enter: lprm 13 To remove a request from a specific queue, enter:
lprm -Plp0 13 To remove from a specific queue a request from user guest, enter: lprm -Plp0 guest
FILES
Printer description file. Spool directories. Daemon control files. Data files specified in cf files. Temporary copies of cf files.
Lock file used to obtain the process ID of the current daemon and the request ID of the currently active request.
SEE ALSO
Commands: lp(1), lpc(8), lpd(8), lpq(1), lpr(1), lpstat(1)lprm(1)