10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
whats the equivalent of detect OS in perl with an if then ?
if ]; then
alias ls='ls --color=auto'
elif ]; then
alias ls='ls -G'
In perl I see
perl -Mstrict -MEnglish -E 'say $OSNAME'
Please use CODE tags as required by... (1 Reply)
Discussion started by: nixguynj
So I mounted a 12.04 LTS ISO, exported it via apache. Goy my netinstall files in place. Pointed Foreman to my install media the Preseed config files run. Life is good.
Server comes up, I run apt-get update and blam:
: Failed to fetch... (0 Replies)
Discussion started by: general_lee
3. Shell Programming and Scripting
How do i get rid of the ^C when i pressed Ctrl-C? (7 Replies)
Discussion started by: vietrice
4. Shell Programming and Scripting
I need to know how to test a pressed key is arrowup or arrowdown and etc..
I found that the "echo" won't print anything if i enter the arrowup in the below code:
echo "you pressed $REPLY"
Then i find a way to achieve my goal.
1 #! /bin/bash
3 ARROWUP='\;then... (4 Replies)
Discussion started by: homeboy
5. Shell Programming and Scripting
I have a script in which I want to disable the "Enter" key press. Actually my script executes some process in background. So, till that background process is running, I don't want "Enter" key to be pressed by user. Is this can be achieved using trap command? (6 Replies)
Discussion started by: R0H0N
6. Shell Programming and Scripting
I'm trying to create a script that waits a given amount of time unless a given key is pressed. I found a very useful thread here
however, I cannot figure out a way of avoiding the keypress if the... (2 Replies)
Discussion started by: cue
7. Shell Programming and Scripting
hi Gurus, please why is this happening:
when i run this:
declare -a name
declare -a ph
declare -a eid
echo " name phone email_id"
#if ; then
echo -n "field $i:"; read name ph eid;
... (5 Replies)
Discussion started by: tprayush
8. UNIX for Dummies Questions & Answers
i am using sun solaris, when i press escape key in putty/netterm screen will blink for a second, plese let me know where this setting is done by my admin, what i feel is my admin must have set some control key for this so that screen will refresh each time i press escape key. please let... (1 Reply)
Discussion started by: sudheer157
9. Shell Programming and Scripting
I want my program(ksh) to execute further only if the return key is pressed.
i have already tried "\n", "\r", "^M" .
Thanks in advance (2 Replies)
Discussion started by: AiK
i´m making a program, and i would like to know how can i know what key was pressed. i'm using Sun5.7 and C.
is there a keypress/keypressed function in C?
how can i know recognize the keys (enter, tab, shift, etc.)?
can i recognize two keys ? (shift+A, ctrl+C, etc)
any idea.. thanks (4 Replies)
Discussion started by: DebianJ