Sponsored Content
Full Discussion: While Read problem
Top Forums Shell Programming and Scripting While Read problem Post 302298690 by Andyp2704 on Wednesday 18th of March 2009 10:08:03 AM
Old 03-18-2009
MySQL

The original listing i had was copied from windows notepad so should have been okay, but i have deleted the entire text file and created it again manually in vi but still doesnt work....

Nevermind, that alternative command you suggested worked a treat...

Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

read after pipe problem OSX10.4

I use read often in scripts to filter the right part into a variable like: $ print "abc cde efg" | read k l ; print "k=$k, l=$l" k=, l= This works on linux and unix versions I work with. On OSX 10.4 this doesn't work. I found a workaround but would like to know why the original line... (5 Replies)
Discussion started by: relyveld
5 Replies

2. Shell Programming and Scripting

SH script problem with read

Hi, I'm doing a script that reads lines from a file and then copy them to another file, if the user wants it. But I'having problems to get the user selection because when I do the read to ask the user, the script reads the next line of the file. The script looks like this: #!/bin/sh # ... (2 Replies)
Discussion started by: pmpx
2 Replies

3. Shell Programming and Scripting

Problem with read in sh

I've discovered a very annoying problem in sh: echo -en "one\ntwo\nthree" | while read VALUE do echo "${VALUE}" done This will print one and two, but not three. The last line is IGNORED because it lacks a newline. This makes it hard to use sh for things like CGI scripting; you have... (6 Replies)
Discussion started by: Corona688
6 Replies

4. Programming

Problem in read() from a pipe

Hi, Can any one please help me with this. Am struggling hard to get a solution. I am doing telnet through a C program and getting the stdout file descriptor of the remote machine to pipe. read() function is getting data, But whenl it receives SOH character ie. ^A ( Start of heading = Console... (2 Replies)
Discussion started by: JDS
2 Replies

5. Shell Programming and Scripting

problem with read command

Hi Guys, I am just trying to read data from a file. The command i tried worked well with AIX server. But in SunOS, it is not reading. cat log.out |sed -n '4,4p'| read value; + sed -n 4,4p + cat log.out + read value echo $value; + echo This is the log of running the script. ... (13 Replies)
Discussion started by: mac4rfree
13 Replies

6. Shell Programming and Scripting

Problem to read archive

Dear all, I have this archive: cat file.txt archive test 02 sequence 03 02length 52 archive test 02 sequence 04 02length 52 archive test 02 sequence 05 02length 52 teste arquivo 06 sequencia 08 06 length 54 teste arquivo 06 sequencia 09 ... (8 Replies)
Discussion started by: cewa67
8 Replies

7. Shell Programming and Scripting

Problem with read line

Hi everybody, I am new to shell script. Please help me with this problem. I have a file test.txt with the content like this: I have a shell script test.sh like this #!/bin/sh while read line do echo $line >> out.txt done < test.txt out.txt is expected to have the same content... (10 Replies)
Discussion started by: Dark2Bright
10 Replies

8. Shell Programming and Scripting

Array; while read line do problem

Hi - I don't understand why the following script isn't working. I want to read the contents of a while loop into an array, but it looks like the array is destroyed once the while loop is finished. Can anybody help? someFile: PC_1 wf_test1 Test PC_2 wf_test2 Test PC_3 wf_test3 Test Script:... (3 Replies)
Discussion started by: lt1776
3 Replies

9. Programming

help: problem with sockets write/read

I am trying to make a server and client, the client will choose between some options and the server will react accordingly. After a some reads and writes that work the server needs to read from client an INT i use this: read(newSd,&k,sizeof(int));But even if all the other times there was no... (1 Reply)
Discussion started by: theSling
1 Replies

10. UNIX for Beginners Questions & Answers

Read -p problem

Hi, :) I tried to make of "line returns" with "\n" : read -p $'Do you really want append this line in '$CONFIG_FILE''\n'IP CLIENT: '$IP_INPUT' - PATH: '$PATH_INPUT''\n'y/n ?:' CONFIRM_INPUT But it didn't work, please anyone have an idea? :b: (2 Replies)
Discussion started by: Arnaudh78
2 Replies
pilot-read-notepad(1)						    PILOT-LINK						     pilot-read-notepad(1)

NAME
pilot-read-notepad - List the record information found in the Palm Notepad SECTION
pilot-link: Userland conduits SYNOPSIS
pilot-read-notepad [-p|--port <port>] [-q|--quiet] [--version] [-?|--help] [--usage] [-l|--list] [-t|--type ppm|png] DESCRIPTION
Connect to the Palm handheld and list the record information found in the Palm Notepad application (found on OS4 and newer devices). If --type is specified, each record's image will be converted to files, using Portable Network Graphic (.png) or Portable Pixmap (.ppm) for- mat. pilot-read-notepad allows a user running PalmOS 4.0 or later to read the data stored in the Palm Notepad application and extract the data into images and convert them to Portable Network Graphics (.png) or Portable Pixmap (.ppm) files. OPTIONS
pilot-read-notepad options -l, --list List picture information found on the device instead of converting them to image files. -t, --type type Specify the output picture type. Can be either "png" or "ppm". Conduit Options -p, --port port Use device file <port> to communicate with the Palm handheld. If this is not specified, pilot-read-notepad will look for the $PILOTPORT environment variable. If neither are found or supplied, pilot-read-notepad will print the usage information. -q, --quiet Suppress 'Hit HotSync button' message -v, --version Display version of pilot-read-notepad and exit without connecting. Help Options -h, --help Display the help synopsis for pilot-read-notepad and exit without connecting. --usage Display a brief usage message and exit without connecting. USAGE
The program will connect to the target Palm handheld, and list or convert the records and images found in the Palm Notepad application to Portable Network Graphic (.png) or Portable Pixmap (.ppm) files. AUTHOR
pilot-read-notepad was originally written by Angus Ainslie <angusa@deltatee.com>. This manual page was converted to XML by Neil Williams <linux@codehelp.co.uk> REPORTING BUGS
We have an online bug tracker. Using this is the only way to ensure that your bugs are recorded and that we can track them until they are resolved or closed. Reporting bugs via email, while easy, is not very useful in terms of accountability. Please point your browser to http://bugs.pilot-link.org: http://bugs.pilot-link.org and report your bugs and issues there. COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. SEE ALSO
pilot-link(7) 0.12.5 Copyright 1996-2007 FSF pilot-read-notepad(1)
All times are GMT -4. The time now is 04:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy