Search Results

Search: Posts Made By: tesser
12,096
Posted By tesser
Yes the loop 1 is while ....; do ..... done <...
Yes the loop 1 is while ....; do
.....
done < file

So I think you've cracked it.....the redirect is confused about where the read should come from!!

read < /dev/tty fixed it.

Thanks

The...
12,096
Posted By tesser
Morning???? Bruddy Canucks :) I think...
Morning????

Bruddy Canucks :)

I think your point about a redirect could be it though.....

I'm abit out of my comfort zone on the subtleties of redirects.

Could it be due to the fact that...
12,096
Posted By tesser
OK, I'm not arguing but..... The function is...
OK, I'm not arguing but.....

The function is getting called correctly else I wouldn't be getting to the CTR-c detected text.

The identical read statement is working perfectly in an ash busybox...
12,096
Posted By tesser
ash busybox read command not working inside function....
I have a script that has to execute a read command in a function, this is in an ash busybox.

The code is...


trapcatch () { echo "Ctl-c Detected, what do you want to do?"
echo "Please...
1,272
Posted By tesser
Jees....sometimes you just spend far too long in...
Jees....sometimes you just spend far too long in front of a screen, total brain*art on my part.

Having fixed that though the read statement is not outputting the Choose 1-3 option, any ideas why? ...
1,272
Posted By tesser
Error Message in function causing failure.....
I have a long busybox ash script that has 3 stages.

1. Identify and Capture information on variable data sources, output the information to text file on each data source.

2. Using data from 1...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 03:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy