03-25-2008
Perl
Dear Era
Sorry if i bothered you but anyway the second command didn't work i typed it as you give me it seems to be executing but i wait for a long time and nothing appear or any error message , i don't know what do you mean by giving it bunch of files ?
Pressing CTRL+D up to my knowledge returns you to command line
The first command works and returned number of field per line.
Anyway sorry if i bothered you
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI.
I just accidently wipe out my hard drive when i installed sun solaris, this is the last thing i remember, it ask me if want to delete the partition table, and i said yes" Im a retard" i thought solaris can't see xp partition table. Could anyone help me recover my data back, is it really... (21 Replies)
Discussion started by: souldier
21 Replies
2. BSD
Thank you guys for the advice, and finally i could connect to internet with FREEBSD, this is what i did. I did evrything what the handbook said and still couldn't connect, then i installed a new ethernet card that support freebsd and i did everything what the manual said in how to install the... (0 Replies)
Discussion started by: nobody
0 Replies
3. UNIX for Dummies Questions & Answers
actually i have important question about unix / linux
i'm working on visuall basic and visuall c++
i heared from someone that i can't open them while i useing unix / linux
is that right?
if yes .......... what's the solution
if no ............. thanks :) :D :D
thanks my friends (1 Reply)
Discussion started by: M_Hafez
1 Replies
4. AIX
Hi guys,
I would like to inform you that I have cleared ....
IBM Certified Specialist - p5 and pSeries Administration and Support for AIX 5L V5.3 with 89%
thanks to you all.
Manu (0 Replies)
Discussion started by: b_manu78
0 Replies
5. Shell Programming and Scripting
Hello Guys,
I have written the following script to do certain job. I have more than 300 files, all are .pdb & .out files. and the files are (1,3,5,7,11,13,15,17,21,.......787,791,793,795).pdb /.out . But the way I created the for loop in my script works only one file at a time. But that is not... (2 Replies)
Discussion started by: chuchu
2 Replies
6. UNIX for Advanced & Expert Users
I want a Bash Shell Script for taking backup of all files created to day and killing all the Process still active of mine at evening every day (1 Reply)
Discussion started by: vinayraj
1 Replies
7. UNIX for Advanced & Expert Users
Dear All
I have a pattern which look like this :
2 20080226_18:02:09.749 ISC-Libya Egypt-Cairo2 111 IAM 2913258040 218927157966 b 61 REL f 143 RLC :COMMA:NCI=10,FCI=6101,CPC=0A,TMR=00,OFI=80,USI: :COMMB:: :RELCAUSE:15:
2 20080226_18:02:11.629 ISC-Libya Egypt-Cairo2 170 IAM 93572641... (8 Replies)
Discussion started by: zanetti321
8 Replies
8. Shell Programming and Scripting
Hi All!
I need to write a script which reads a file and tries to insert into the DB using those values...
file format:
var1 var2 var3
var4 var5 var6
Now I want to read from the above file and trying to insert like...
insert into table1 values( var1, var2, var3 );
in a loop to... (2 Replies)
Discussion started by: games_icon
2 Replies
9. Cybersecurity
Hey guys, new geek here, sorry I didnt see a intro section. But I do have a question and hope to make my stay here perma. I am interested in IT security, ands I really want to learn, I was hoping for whatever questions I had you guys could lead me through the narrowest path with a broad selection... (1 Reply)
Discussion started by: abeja
1 Replies
10. Shell Programming and Scripting
how to print first line of each repeated 2 fields only if i got files like :
USA|Tony|12:25:22:431
USA|John|14:22:42:981
USA|John|08:22:12:349
France|Adam|14:22:42:981
Italy|Tony|18:22:42:212
Italy|Tony|04:22:42:212
Italy|Tony|08:22:42:212
to make output like :
... (9 Replies)
Discussion started by: teefa
9 Replies
PAP(8) System Manager's Manual PAP(8)
NAME
pap - download files to or communicate interactively with an AppleTalk network connected printer
SYNOPSIS
/usr/sbin/pap [ -d ] [ -p printer ] [ -s statusfile ] [ files ]
DESCRIPTION
pap is used to connect and send files to an AppleTalk connected printer using the Apple Printer Access Protocol (PAP). pap can also be
used to conduct an interactive session with a PostScript printer. When pap starts execution, it first tries obtain the status of the
printer. It then tries to open a session with the printer using PAP, and then downloads the files to the printer.
If no files are given on the command line, pap begins reading from standard input.
If no printer is specified on the command line, pap looks for a file called .paprc in the current directory and reads it to obtain the name
of a printer. The .paprc file should contain a single line of the form object:type@zone where each of object, :type, and @zone are
optional. type and zone must be proceeded by `:' and `@' respectively. Lines the begin with a `#' are ignored. type and zone default to
LaserWriter and the zone of the local host, respectively.
Note that pap is designed to be useful as a communication filter for sending lpd(8) spooled print jobs to AppleTalk connected printers.
See psf(8) for hints on how to use it this way.
OPTIONS
-p printer
Connect to the printer named printer (do not consult the .paprc file to find a printer name). The syntax for printer is the same as
discussed above for the .paprc file.
-s statusfile
Update the file called statusfile to contain the most recent status message from the printer. pap gets the status from the printer
when it is waiting for the printer to process input. The statusfile will contain a single line terminated with a newline. This is
useful when pap is invoked by lpd(8) within lpd's spool directory.
-c
Take cuts. The PAP protocol specified a simple queuing procedure, such that the clients tell the printer how long they've been
waiting to print. This option causes pap to lie about how long it's been waiting.
-e
Send stdout to stderr. This causes information that the printer returns to be recorded as error output for lpd.
-E
Don't wait for EOF from the printer. This option is useful for printers which don't implement PAP correctly. In a correct imple-
mentation, the client side should wait for the printer to return EOF before closing the connection. Some clients don't wait, and
hence some printers have related bugs in their implementation.
-w
Wait for the printer's status to contain the word "waiting" before sending the job. This is to defeat printer-side spool available
on HP IV and V printers.
FILES
.paprc file that contains printer name
~/.paprc secondary file to look in for printer name
SEE ALSO
nbp(1), pap(4), lpd(8), papstatus(8), psf(8).
BUGS
pap will send a quit command to exit interactive mode when it gets an end-of-file on a tty. If the user has already typed quit themselves,
the quit that pap sends is spurious and will cause a PostScript error. The fix would be for pap to watch what the user types and look for
quit, but this is impractical.
netatalk 1.2 13 Dec 1991 PAP(8)