05-20-2008
What exactly are you trying to cut from the line?
I noticed that:
./read.sh: 12: not found
JADE TRADER 143W MYPEN 40 HC M X10 28 7 1 0
./read.sh: 9: not found
MYPEN 20 GP X X10 15 2 1 0
(a) in the first case, 12 is the number of output fields; in the second case, 9 is the number of output fields
(b) this last field is always a 0 (zero)
Are you trying to cut the last field for every line of input?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file name coming in as such
<string>_YYYYMMDD.DAT
The string could be anything. I want to cut out the date and put it in a variable. Can someone help me with this? (4 Replies)
Discussion started by: lesstjm
4 Replies
2. Shell Programming and Scripting
Hi all;
i was asked to install an inventory tool on our Reliant Unix 5.45 server. I downloaded the file from our intratnet.
It was always failing when i try to install it.
After some investigation i saw that the installation script had something strange.
When i "cat <script>" i see nothing... (2 Replies)
Discussion started by: bcheaib
2 Replies
3. Shell Programming and Scripting
Hi guys
I am having some problem cutting and comparing values.I got an INI file which is has some values and ranges mapping to error and warning codes
eg
criticalerror:69,20,1to9
warningmsg:101,10to19
So taking the scenrio where i have a control script that execute a.ksh, when a.ksh... (6 Replies)
Discussion started by: wilsontan
6 Replies
4. UNIX for Dummies Questions & Answers
Is there any cut or awk function that would allow me to take the last part of a path away and save the list into a file? I wrote:
find $HOME -mtime +3 > fileList
cat fileList
/home/102/s/jn/folder/HW
/home/102/s/jn/otherfolder/B.txt
/home/102/s/jn/folder4/3dA/w... (1 Reply)
Discussion started by: terms5
1 Replies
5. Shell Programming and Scripting
Hi All ,
i am working on a backup script , which would a call a executable file in unix server ,
Login credentials ::
use telnet session to login to Unix server
when logged in, this would be my Prompt :::
unix11@raghav:
I just need to cut the word unix11 , so that i can use this... (12 Replies)
Discussion started by: raghav1982
12 Replies
6. Shell Programming and Scripting
Dear All,
Is there a way to cut the lines that have been "head"
Here is what i m trying to do Please advice
there is file name dummy.txt
now i am trying to head this file 4 time by using a loop and every time this file is head with different values
e.g in first instance it will... (7 Replies)
Discussion started by: jojo123
7 Replies
7. Shell Programming and Scripting
Hi all
I have a string variable ${WHERE_SQL1} where i want to cut the first value of a variable.
Eg ${WHERE_SQL1} = 'Where a.id =.................'
I the string to be 'a.id =.......'
Thanks in advance (2 Replies)
Discussion started by: theeights
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have a string in the following format
"abcd | fghfh | qwer | ertete"
I need to cut the values in the following format
line1 = abcd | fghfh | qwer
line2 = ertete
Simply speaking a want to cut all the values before the last delimiter from the line and print it on one line and... (11 Replies)
Discussion started by: amit_kv1983
11 Replies
9. Shell Programming and Scripting
Hi,
I have a var sdt='23032011000000'
now if i want only 23 out of above? hw to cut?
also..after cuttint-will it be stored in another var as a varchar or as a number? (4 Replies)
Discussion started by: musu
4 Replies
plmpower(8) powerman plmpower(8)
NAME
plmpower - control Insteon/X10 devices via SmartLabs PLM 2412S
SYNOPSIS
plmpower --device serial-port
DESCRIPTION
plmpower is a helper program for powerman which enables communication with Insteon/X10 devices via SmartLabs Power Line Modem, model 2412S.
It is run interactively by the powerman daemon. It can also be useful as a standalone tool for debugging X10/Insteon networks based on the
above device.
NETWORK SETUP
Note the addresses of your Insteon/X10 devices. Plug the PLM into an AC outlet, preferably on the same electrical phase as the devices
under control. Devices are available to bridge phases if this is not possible.
Attach the PLM's serial port to your computer, and ensure that nothing else is using the serial port such as the system console or
getty(8). Run plmpower and try the interactive commands below to see if the devices respond reliably.
Once everything is working, configure powermand to run plmpower as a coprocess as described in powerman.conf(5).
OPTIONS
-d, --device serial-port
Specify the path to the special file connected to the PLM's serial port.
-t, --timeout msec
Set the Insteon timeout to the specified number of milliseconds (default 1000).
-x, --x10-attempts number
Set the number of times to run every X10 command (default 3). X10 does not provide an ACK/NAK mechanism like Insteon so we cannot
be certain that any particular X10 command completed, therefore X10 commands are issued multiple times to increase confidence.
INTERACTIVE COMMANDS
The following commands are accepted at the plmpower> prompt. Address arguments may be Insteon (e.g. 1A.2B.3C) or X10 (e.g. G12).
help Display help on the available commands.
info Get info about the PLM.
reset Reset the PLM (clears the all-link db).
on addr
Turn on device.
off addr
Turn off device.
status addr
Query status of device (Insteon only).
ping addr
Time round trip request/response to device (Insteon only).
FILES
/usr/sbin/plmpower
/etc/powerman/powerman.conf
ORIGIN
PowerMan was originally developed by Andrew Uselton on LLNL's Linux clusters. This software is open source and distributed under the terms
of the GNU GPL.
SEE ALSO
powerman(1), powermand(8), httppower(8), plmpower(8), vpcd(8), powerman.conf(5), powerman.dev(5), powerman-devices(7).
http://sourceforge.net/projects/powerman
powerman-2.3.5 2009-02-09 plmpower(8)