Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Intermittent problem reading from an input file. Post 302332869 by Wallygooo32 on Friday 10th of July 2009 08:44:55 AM
Old 07-10-2009
sighK,
Thanks for the reply. I'm not sure i understand the changes you are suggesting. Can you explain the reasoning?

Last edited by Wallygooo32; 07-10-2009 at 09:59 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help reading an input file in KSH

First I' d like to say you guys are awesome. :) I have a word document that I cut and paste into Textpad and it removed all the fancy formatting which is fine with me. I WinScp'd it to the box and and called it inputfile.txt. Opened it in vi and don't see any special characters or stuff that... (2 Replies)
Discussion started by: zilla30066
2 Replies

2. UNIX for Advanced & Expert Users

FTP Problem (Intermittent)

I am having problem with ftp not indicating any error, but my customer is complaining that their response file is not present on their machine. This only happens a couple of times a day. Is there a debugging option I can turn on to the trace the ftp command. I have a return code displayed and it... (2 Replies)
Discussion started by: rob11g
2 Replies

3. Solaris

Intermittent Connection and Samba problem

Hi all , I just installed a Solaris10 on x86 machine , running on vmware . I was able to telnet from my local machine to the solaris ( the one running on the vmware) , but the connection was pretty slow and intermittent . Is there any setting that I should customize to ensure the telnet... (2 Replies)
Discussion started by: osca7578
2 Replies

4. Shell Programming and Scripting

reading input from a file

I am trying to read input for a C program (that expects input from the user) from a file using the shell command: progname < filename but it seems that the program considers the char '<' as the first input, hence causing an "error" in my program. I checked it with another program and it... (2 Replies)
Discussion started by: nadbar
2 Replies

5. Shell Programming and Scripting

Reading specific contents from 1 input files and appending it to another input file

Hi guys, I am new to AWK and unix scripting. Please see below my problem and let me know if anyone you can help. I have 2 input files (example given below) Input file 2 is a standard file (it will not change) and we have to get the name (second column after comma) from it and append it... (5 Replies)
Discussion started by: sksahu
5 Replies

6. Shell Programming and Scripting

[SH] Problem reading input in script

Alright, so the goal of my script is to read text from standard input and store it into a file using the ex-editor: so far i've got this, but it doesn't work. #!/bin/s read text ex $1 >> HERE text HERE I don't get any errors either, so i don't know what i'm doing wrong. (7 Replies)
Discussion started by: Bertieboy7
7 Replies

7. UNIX for Dummies Questions & Answers

Help in reading the date from the input file name

Hi, I need to read the date from the input file. The format of the input file is as follows: a_b_c_yyyymmdd.txt I need to read the date(yyyymmdd) part from the name of the input file. Would really appreciate if someone can help me in this regard Thanks a lot. (1 Reply)
Discussion started by: Sunny_teotia
1 Replies

8. Shell Programming and Scripting

Problem in reading the input value

echo "Enter the Value : " read value sed '1s:\(.\{6\}\)\(.\{4\}\):\1'$value':' flextran$RUN_DATE-completed.txt > temp.txt mv temp.txt flextran$RUN_DATE-completed.txt on the run time after entering the input value it waits for keystroke and the values is not input to the function The output... (4 Replies)
Discussion started by: rammm
4 Replies

9. Shell Programming and Scripting

Reading user input...problem with tab key

Hi all, I have a little problem with my shell script (reading user input, save user input to variable, invisible characters in the log file :() printf "1. What's your file path?" /path/to/my/file read -e FILE I have invisible characters in my log file (e.g. <ESC> or ^G) when I'm... (3 Replies)
Discussion started by: splendid
3 Replies

10. UNIX for Dummies Questions & Answers

User input while reading from a file

I am not able to capture the user input in this script(bash).There is prompt for user input.Could some one help me capture user input while reading afile? while read line do echo "$i" path1=$line path2=`echo $line|sed s/new_dir/old_dir/` echo "Do you want to replace?";... (4 Replies)
Discussion started by: parijat guh
4 Replies
tcpdchk(1)						      General Commands Manual							tcpdchk(1)

NAME
tcpdchk - check tcp wrapper configuration SYNOPSYS
inet_conf] DESCRIPTION
examines the tcp wrapper configuration and reports all potential and real problems it can encounter. The command examines the access con- trol files (by default, these are and and compares the entries in these files against entries in the configuration file. reports the following types of problems: non-existent pathnames, services that appear in access control rules but are not controlled by services that should not be wrapped, non-existent host names or non-internet address forms, occurrences of host aliases instead of official host names, hosts with a name/address conflict, inappropriate use of wildcard patterns, inappropriate use of NIS netgroups or references to non-existent NIS netgroups, references to non-existent options, invalid arguments to options. Wherever possible, provides a helpful suggestion to fix the problem. Options The following options are supported by If no options are specified, then it uses the default location of the files. Report access control rules that permit access without an explicit keyword. Examine the and files in the current directory instead of the default ones. Specify this option when is unable to find your configuration file, or when you suspect that is using the wrong file. inet_conf is the path name of the con- figuration file whose entries you want to examine. Display the contents of each access control rule. Daemon lists, client lists, shell commands and options are shown in a printable format. The display helps you find any discrepancies between what you want and what understands for the access control rules. AUTHOR
Wietse Venema (wietse@wzv.win.tue.nl), Department of Mathematics and Computing Science, Eindhoven University of Technology Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands FILES
The default locations of the access control tables are: (daemon, client) pairs that are granted access. (daemon, client) pairs that are denied access. SEE ALSO
tcpdmatch(1), explains what would do in specific cases. inetd.conf(4), format of the control file. hosts_access(5), format of the access control tables. hosts_options(5), format of the language extensions. tcpdchk(1)
All times are GMT -4. The time now is 09:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy