Search Results

Search: Posts Made By: jlovi
4,049
Posted By jlovi
Did you try to type Ctrl-C?
Did you try to type Ctrl-C?
4,049
Posted By jlovi
My stations is a Fedora/KDE system, I use Konsole...
My stations is a Fedora/KDE system, I use Konsole in order to connect to an AIX server, using ssh. The script runs on the AIX server. You were talking of terminal issues, that's why I mentionned my...
4,049
Posted By jlovi
Hello, I tried you suggestion. Doesn't work...
Hello, I tried you suggestion. Doesn't work either. Anyway, this code requires 2 x Ctrl-D, the first time:

echo a|read a
read line No Ctrl-D read in the first read.

---------- Post updated...
4,049
Posted By jlovi
Well, well, I was wrong telling that this was the...
Well, well, I was wrong telling that this was the last trick I needed.

In fact, I need to capture Ctrl-D and Ctrl-C, differenciating them. If I type something like "\n$1", I should exactly get...
4,049
Posted By jlovi
Thanks for your great ideas! Unfortunately...
Thanks for your great ideas!

Unfortunately (I think this is the last trick), I need to emulate "read -r line" :(



### UPDATE ###

This seems to work. I'll try it in my program.
...
4,049
Posted By jlovi
You're right (quite late here to have a...
You're right (quite late here to have a completely clear mind :rolleyes:).

This has the problem too:

#!/usr/bin/ksh93


echo "a"| read a

echo "After Perl: \c"
read line
echo "|$line|"
...
1,234
Posted By jlovi
Yeah, not clear. Which behavior required...
Yeah, not clear.

Which behavior required when a a a b a?
1,234
Posted By jlovi
First attempt: uniq -c ttt|while read n c;do...
First attempt:

uniq -c ttt|while read n c;do i=1; while ((i<=n));do echo "$i $c";((i=i+1));done(korn shell)
4,049
Posted By jlovi
ksh vs perl strange interaction.
Hello everybody,

I isolated an issue: please try the following script (under AIX)

#!/usr/bin/ksh93


echo "Before Perl: \c"
read line
echo "|$line|"

perl -e 'print "Perl invocation";'...
Showing results 1 to 9 of 9

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