Sponsored Content
Full Discussion: strange cat question.
Top Forums Shell Programming and Scripting strange cat question. Post 302092481 by sanchopansa on Tuesday 10th of October 2006 08:06:46 AM
Old 10-10-2006
strange cat question.

Does anyone know what the microprograms behind cat (and other commands) are like? In what language are those programs designed? Is their source available somewhere?
No particular reason, just wondering.
I know it's a bit strange...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Strange question

Good day. I whant to put in a "readkey" function into my script. My script will be running in "real time". Basicaly I whant to add a eg. "Press X to exit" statement into my script. More or less like the read command, but I don't whant it to wait for the user to press enter. eg. Readkey. If no... (5 Replies)
Discussion started by: Blooper
5 Replies

2. Shell Programming and Scripting

question about cat in script

hi all i have some script echo $$ > process-id d='cat process-id' if test-s "TMP"$d then echo "serv1" else echo "serv2" fi the variable d should contain the number of the process, instead of that it contains 'cat process-id' how shall i do that the d will contain only the number?... (6 Replies)
Discussion started by: naamas03
6 Replies

3. Shell Programming and Scripting

Question regarding cat command

Hello Friends, I have a question, i am trying to write a shell script in the bash shell. #!/bin/sh NAWK=/bin/nawk AWK=/bin/awk FIX_XML_PATH=/home/administrator/testfix/fix/ Y=`ls $FIX_XML_PATH | grep xml` echo $Y cat $Y in this case when i do the echo $Y command it gives me the... (11 Replies)
Discussion started by: asirohi
11 Replies

4. OS X (Apple)

Question about cat and echo

Hello, I am trying to send text to a USB to serial adaptor and then to an external speech synthesizer. I tried using the cat and echo commands with no luck. I have gotten some audio output from my synthesizer using Kermit a terminal emulator, so I am pretty sure my synthesizer and my USB to serial... (1 Reply)
Discussion started by: jamesapp
1 Replies

5. Shell Programming and Scripting

Easy cat question

I am having problems getting a list of filenames that I want from a directory. example: I have 3 files - filename.xxx.20110505.123030 filename.yyy.20110505.123030 filename.zzz.20110505.123030 There may be multiple xxx,... (3 Replies)
Discussion started by: Drenhead
3 Replies

6. Shell Programming and Scripting

cat question

Can any one guide me how can i accomplish this by script i continuously receive files via our ftp server into a certain folder is there a way i can take those files cat it to a new file by hour and create a new file when new hour starts? (4 Replies)
Discussion started by: shehzad_m
4 Replies

7. UNIX for Dummies Questions & Answers

Strange cat command

What does the below statement means ? cat "$1" > /tmp/file.$$ 2>/tmp/file0.$$ Please help. (3 Replies)
Discussion started by: csrohit
3 Replies

8. UNIX for Dummies Questions & Answers

Question regarding Cat

Can we concatenate say, I have a few files prefixing with 2009... So now i want all the 2009 files into one single file.. Can this be achieved???? (4 Replies)
Discussion started by: saggiboy10
4 Replies

9. Shell Programming and Scripting

cat question

hello! why this works? cd /home/user cat * | ecasound -i stdin -o jack and this doesn't? cd /home/user/somedirectory cat * | ecasound -i stdin -o jack somedirectory are full with exe files which are the best source for this sort of noise thing (10 Replies)
Discussion started by: karlhungus
10 Replies

10. Homework & Coursework Questions

Cat/File Descriptor Question

For the command below, I need to understand what exactly the command does and provide an examples for which the output will be saved to file save2... From my understanding, if the file provides an error in the first half of the pipe, it'll save to save1 and will never give an error to save to... (2 Replies)
Discussion started by: ayz649
2 Replies
cups-driverd(8) 						    Apple Inc.							   cups-driverd(8)

NAME
cups-driverd - cups driver daemon SYNOPSIS
cups-driverd cat ppd-name cups-driverd list request_id limit options DESCRIPTION
cups-driverd shows or lists PPD files. It is run in response to CUPS-Add-Modify-Printer or CUPS-Get-Devices requests. The first form ("cups-driverd cat ppd-name") writes the named PPD file to stdout. The output format is an uncompressed PPD file. The second form lists the available manufacturers or PPD files to stdout as indicated by the options argument. The output format is an IPP response message. The request_id argument is the request ID from the original IPP request, typically 1. The limit argument is the limit value from the original IPP request - 0 means no limit. Finally, the options argument is a space-delimited list of attributes ("name=value name=value ...") that were passed in with the request. Currently cups-driverd looks for the ppd-make and requested-attributes attributes and tailors the output accordingly. DRIVERS
Drivers can be static PPD files under the /usr/share/cups/model directory or programs under the /usr/lib/cups/driver directory. Static PPD files must conform to the Adobe PPD File Format Specification version 4.3 and may be compressed using the gzip(1) program. Driver programs must implement the command-line interface shown in the next section. DRIVER PROGRAMS Driver programs provide a interface to dynamically-generated PPD files. The following arguments are currently defined: drivername list Lists the supported PPD files to stdout. drivername cat ppdname Writes the named PPD file to stdout. Driver programs MUST NOT query hardware or make other long-term operations that would delay the return of a driver list. See the NOTES sec- tion below for specific recommendations. LISTING FILES (drivername list) When run with the single argument "list", the program must list the available PPD files it can generate to stdout using the following for- mat: "drivername:ppdname" language "make" "make and model" "drivername:ppdname" language "make" "make and model" "1284 device id" "drivername:ppdname" language "make" "make and model" "1284 device id" "(PPD product)" "drivername:ppdname" language "make" "make and model" "1284 device id" "(PPD product)" "PostScript version" "drivername:ppdname" language "make" "make and model" "1284 device id" "(PPD product)" "PostScript version" "type" Drivername is the name of the driver program. Ppdname is the name used to select the given driver. Language is the locale associated with the default language of the PPD file, typically "en". Make is the Manufacturer name from the PPD file. Make and model is the NickName name from the PPD file. 1284 device id is the 1284DeviceId from the PPD file, if any. (PPD product) is the Product string as it would appear in the PPD file or from a PostScript query. PostScript version is the PSVersion string as it would appear in the PPD file or from a PostScript query. Type is "postscript" for PostScript printers, "pdf" for PDF printers, "raster" for raster printers, or "fax" for facsimile devices. WRITING FILES (drivername cat ppdname) When the driver program is run with the "cat ppdname" arguments, it must write the named PPD file to stdout, uncompressed. If the named PPD file does not exist, the driver program must not write any output to stdout and report the error to stderr instead. DRIVER ERROR MESSAGES Error messages can be relayed back to cupsd by writing them to stderr. The following prefixes are recognized: DEBUG: [drivername] Debugging messages ERROR: [drivername] Error messages INFO: [drivername] Informational messages NOTES
Due to performance considerations, driver programs have been officially deprecated and should not be used for new development. Currently only the CUPS web interface and lpinfo(8) command will request lists from all driver programs. SEE ALSO
cupsd(8), cupsd.conf(5), cupstestppd(1), lpinfo(8), http://localhost:631/help COPYRIGHT
Copyright 2007-2013 by Apple Inc. 6 January 2011 CUPS cups-driverd(8)
All times are GMT -4. The time now is 06:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy