Actually, I like it. The same operation in pure shell would be big ugly loops.
This looks weird though: IFS=$'\n'"\n" You would have three separators that way -- newline, backslash, and n. I think
would be sufficient, not to mention, portable to shells which don't have $'' syntax.
I would avoid all that mucking with arrays. Makes it longer and less clear.
I stumbled on this feature on a SLES10 system yesterday... if you tar tf filename.tar.gz or tar xf filename.tar.gz it automatically gunzips the data for you. Has this feature been around for a while? I have 1.12 on my system, which doesn't, but the 1.20 manual mentions it... (3 Replies)
Hey, for the purpose of a research project I need to know if a specific type of parallel processing is being utilized by any user-run programs. Is there a way to detect whether a program either returns a value to another program at the end of execution, or just utilizes any form of parallel... (4 Replies)
Hi all...
(Apologies for any typos at all.)
This is a step by step _script_ to check if your Arduino is talking to your Linux or Macbook Pro computer using the Terminal...
It works on at least 3 Linux flavours and now the Macbook Pro...
I hope you find it useful as a simple check for... (0 Replies)
This is a very simple starter DEMO to access Arduino Diecimila Board for the
Macbook Pro 13" OSX 10.7.5...
A potentiometer is connected between 5V and Gnd with the wiper connected to
ANALOG IN 0 on the Arduino. This was adjusted to give the Ms and Ls as seen...
I now have DC in for this... (0 Replies)
In my further exploration of Arduino, today I decided to install the arduino-cli on my mac today.
https://github.com/arduino/arduino-cli
I followed the instructions for macOS but when I got to this part:
arduino-cli board list
I got the dreaded "Unknown" Fully Qualified Board Name... (1 Reply)
HI all...
(Apologies for any typos.)
To add to Neo's Arduino subject matter I have decided to upload this in ".zip" format.
Ignore "*.info" files these are AMIGA icons only and also the "HAM" drawer as these are photos in ancient AMIGA HAM modes.
I have noticed that there are current... (6 Replies)
Just finished a quick Python script to send the current unix time over to the Arduino from macOS, so in the absence of GPS or some other way to get the unix timestamp (epoch time) to the Arduino, I can get my macOS and Arduino UNO synced to within a second.
Normally, when the Arduino starts... (9 Replies)
Normally I'm not into kits, but I thought my wife would enjoy this one since she is a big fan of robots and droids on StarWars!
We are done with the basic mechanical assembly and starting on the electronics assembly today.
The robot's "brain" consists of three levels. The Arduino board, on... (5 Replies)
Discussion started by: Neo
5 Replies
LEARN ABOUT DEBIAN
pconf_detect
libprinterconf(6) Games Manual libprinterconf(6)NAME
pconf_detect - A command-line utility for autodetecting printers in Linux
SYNOPSIS
pconf_detect -m [PPORT|NETWORK] -i <info-string>
DESCRIPTION
pconf_detect is a command-line utility for autodetecting printers from Linux. It is a simple wrapper around libprinterconf's
pconf_detect_printer() function. It currently supports two methods of autodetection: parallel port detection and network detection.
The detection type is specified with the -m option, which can be followed by one of two values: PPORT or NETWORK. Detection specific
information is passed following the -i option. For parallel port detection, this will be a comma-separated string of parallel port numbers.
For network detection, it will be some method of specifying a range of hosts or IP addresses.
The most common form is "10.203.1.2/24", indicating the IP/bitmask to scan.
Other formats include an IP range ("10.203.1.12-30"), an IP/netmask ("10.203.1.2/255.255.255.0"), a simple IP address ("10.203.1.2"), or a
host name ("myprinter.mydomain.com").
[Note: Detection of large network subnets can take a significant amount of time.]
pconf_detect will print out a set of formatted text strings, one for each detected printer.
The actual format of these strings will depend on the detection method. For parallel port detection, the string will be in the basic form:
"port=p;model=m". For a network printer the form is: "printer=hostaddr;vendor=v;model=m".
EXAMPLES
PPORT example:
pconf_detect -m PPORT -i 0,1
where "0,1" is a comma-separated list of the parallel port to scan.
NETWORK example:
pconf_detect -m NETWORK -i "10.203.1.2/24"
where "10.203.1.2/24" is the IP/bitmask to scan.
SEE ALSO libprinterconf(3)Printerconf Docs 12 April 2000 libprinterconf(6)