10-15-2010
There ara also install.
But a need script that can check the statut and if one of the printer is disabble (for example), an automatic lpmove should be execute.
10 More Discussions You Might Find Interesting
1. HP-UX
Hi All,
I am the new boy on the Block with HP-UX.
To get to the point, I have a Hp-ux (C200) workstation running on Hp-ux 11.x Operating System. A week ago when practicing on file access permission, I have set the permission on a directory (perhaps a file I am not sure) to 0544 and did... (19 Replies)
Discussion started by: mhossien
19 Replies
2. Shell Programming and Scripting
Hi all,
I am running a script on bash shell, although it gives me the desired output, it displays some errors at the prompt like
this directory doesnt exists
unary operator
etc etc
Is there someway to avoid these errors ??
Its very annoying to have these errors while the script is... (4 Replies)
Discussion started by: vikas027
4 Replies
3. Programming
Hi all,
I am struck at this point and needed some help in ruby
I wanted to write a script that accepts the no of VNICs the user wants to create and
then ask for the name of each Vnic he wants
then use these names to create the corresponding Vnics
Eg: suppose that there are 2 Vnics to be... (0 Replies)
Discussion started by: wrapster
0 Replies
4. Shell Programming and Scripting
Hi I have a script which is coming up with errors when I iterate over a list of database names. When I print out the values it shows a title & underline...if I then attach "hi" to the print out I get :
hi
TBS_SVC_NAME hi
------------------------------ hi
bkahepa hi
hi
echo "select... (14 Replies)
Discussion started by: Dird
14 Replies
5. Shell Programming and Scripting
Guys
following lines help me in getting numbers from PID column ,to be thrown into first column of a CSV file.
COLUMNS=2047 /usr/bin/ps -eo pid,ppid,uid,user,args | grep -v "PID" > /tmp/masterPID.txt
cat /tmp/masterPID.txt|while read line
do
PID=`echo $line|awk '{print $1}'`
echo "$PID"... (4 Replies)
Discussion started by: ak835
4 Replies
6. Shell Programming and Scripting
Hi Guys.
I have 3 variables
$HOST
$Username
$Password
I want to connect to a remote server using SFTP.
usr/bin/sftp -o Cipher=blowfish $HostWhere do I put in the options for the username and pwd??? I have tried different ways and nothing works. It keeps coming back and promting me.
... (5 Replies)
Discussion started by: ramangill
5 Replies
7. Shell Programming and Scripting
Sometimes we need a single instance of a script to run at a time. Meaning, the script itself should detects whether any instances of himself are still running and act accordingly.
When multiple instances of one script running, it’s easy to cause problems. I’ve ever seen that about 350 instances... (4 Replies)
Discussion started by: edenCC
4 Replies
8. Shell Programming and Scripting
I have a script that collects data from about 200 servers using 'ssh'. The problem is that, process sometime hangs at some point stopping the execution of the script. Please give me some idea how can I force the execution to jump to the next step if there arises any problem !! Thanks for replies if... (1 Reply)
Discussion started by: mdangol
1 Replies
9. Shell Programming and Scripting
Hi,
I have the following requirement:
I have load_cdr as main scriptwhich loads all the file records into vertica database through unix script. But there are two files which try to update same table..n thats y my script is getting failed...
Can any1 give me some logic how to over come this... (6 Replies)
Discussion started by: gnnsprapa
6 Replies
10. UNIX for Beginners Questions & Answers
hi
I am writing a script where I don't want to display banner on terminal.
below is the script. what should I do to avoid this without doing any permanent changes. I just don't want to avoid printing banner in my script.
for i in `cat IP`
do
ssh root@$i '... (4 Replies)
Discussion started by: scriptor
4 Replies
lpmove(1M) System Administration Commands lpmove(1M)
NAME
lpmove - move print requests
SYNOPSIS
lpmove [request-ID] destination
lpmove destination1 destination2
DESCRIPTION
The lpmove command moves print requests queued by lp(1) or lpr(1B) between destinations.
The first form of lpmove moves specific print requests (request-ID) to a specific destination.
The second form of the lpmove command moves all print requests from one destination (destination1) to another (destination2). This form of
lpmove also rejects new print requests for destination1.
lpmove moves individual requests or entire queues only between local printers or between remote printers, not between a local and a remote
printer. You can move only requests that were not previously transferred to the server.
When moving requests, lpmove does not check the acceptance status of the destination to which the print requests are being moved (see
accept(1M)). lpmove does not move requests that have options (for example, content type or requiring a special form) that cannot be handled
by the new destination.
OPERANDS
The following operands are supported:
request-ID The specific print request to be moved. Specify request-ID as the identifier associated with a print request as reported by
lpstat. See lpstat(1).
destination The name of the printer or class of printers (see lpadmin(1M)) to which lpmove moves a specified print request. Specify
destination using atomic, POSIX-style (server:destination) syntax.
destination1 The name of the destination from which lpmove moves all print requests. Specify destination using atomic, POSIX-style
(server:destination) syntax.
destination2 The name of the destination to which lpmove moves all print requests. Specify destination using atomic, POSIX-style
(server:destination) syntax.
See printers.conf(4) for information regarding the naming conventions for atomic names and standards(5) for information regarding POSIX.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
non-zero An error occurred.
FILES
/var/spool/print/* LP print queue.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWpcu |
+-----------------------------+-----------------------------+
SEE ALSO
lp(1), lpr(1B), lpstat(1), accept(1M), lpadmin(1M), lpsched(1M), printers.conf(4), attributes(5), standards(5)
System Administration Guide: Advanced Administration
SunOS 5.10 8 Feb 2001 lpmove(1M)