10-10-2008
what is not working?
Is it giving a syntax error on the command, or is the command not changing (altering) the print option?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Discussion started by: jpeery
2 Replies
2. UNIX for Dummies Questions & Answers
it seams that my ctrl+c and my ctrl+d don't work. if I type a bunch of jiberish on a line and ctrl+c I expect the command to be cancelled and to be given a fresh prompt, but instead it just putts ^C at the end of the line.
Also, ctrl+d should close the session, but instead mine just puts ^D at... (3 Replies)
Discussion started by: yankee428
3 Replies
3. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
4. Shell Programming and Scripting
I have a script which uses below for loop:
for (( i = 0 ; i <= 5; i++ ))
do
echo "Welcome $i times"
done
But when I run the script, it gives error message:
Syntex Error : Bad for loop variable
Can anyone guide to run it?
Thanks in advance. (10 Replies)
Discussion started by: naw_deepak
10 Replies
5. UNIX for Dummies Questions & Answers
# uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
# useradd 4141421248
useradd: invalid user name '4141421248'
why??? (6 Replies)
Discussion started by: cqlouis
6 Replies
6. Shell Programming and Scripting
Hi!
I have a somehow big file (almost 3000 lines long and thirteen columns). Some lines have no value at all or, at least, are incomplete. The columns' values that have no data are marked with a "-" and the corresponding line (the line that owns that value) should be discarded and not used.
... (5 Replies)
Discussion started by: Marcelo de Brit
5 Replies
7. UNIX for Dummies Questions & Answers
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory
I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies
8. Shell Programming and Scripting
root@SDP_Wildcat_Pass-3-C1:~# cat /proc/driver/rtc
rtc_time : 05:29:40
rtc_date : 2014-12-19
alrm_time : 01:51:53
alrm_date : 2014-12-20
alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ... (4 Replies)
Discussion started by: yanglei_fage
4 Replies
9. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 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)