Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
ksh script
Name: abby Date: July 18, 2002 at 11:58:52 Pacific
Comment:
Hi all, I'm trying to prompt user for input using "read" in ksh script. I want to quit, if the user doen't input any value for say "45" seconds. Can anyone help me accomplish this task? Thanks
Name: LANkrypt0 Date: July 18, 2002 at 14:37:28 Pacific
Reply:
Heh, nice little problem, I thought it would be easy, but I am working on it.
0
Response Number 2
Name: LANkrypt0 Date: July 18, 2002 at 15:00:24 Pacific
Reply:
I cant figure this one out. Problem it seems is that when you issue the read command it puts the script on "hold". Ill keep thinking/working on it and post a something tomorrow (explaination as to why not if I cant get it :)
0
Response Number 3
Name: Frank Date: July 19, 2002 at 00:56:11 Pacific
Reply:
Abby,
On HP-UX use "reply=`line -t 45`
refer to "man line" for detail description. This is not portable to other Unix.
If you are not using HP-UX please specify which kind of unix you are using.
No RISK no fun Frank
0
Response Number 4
Name: Frank Date: July 19, 2002 at 01:35:26 Pacific
Reply:
Abby,
In the menawhile i wrote the following: It is a litel bit long and uncomfortable but it past the first tests.
Summary: Hello all, I'm having a problem with one part of my KSH script. Below is the script and OutPut. What I would like to do next is combine field 1 "example = Accoskypager" with the other Accoskypager bu...
Summary: Hello, I have a Ksh script problem. The scrip is polling a directory every 5 mins to get a file, which contains the input line like "put abc.dat /home/test" etc. If the file contain is not empty, th...
Summary: Hi. I have a kornshell script that runs on a daily basis as a cron job. Part of what the script does is copy the folder contents from another server to the current server (server where KSH script is r...