06-22-2009
afaik the vi mode only works for korn shell!?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've been sitting here for 6 hours typing out all kinds of different ridiculous(very pointless) shell scripts for a low-level UNIX class. I'm tired.. and want to go to bed :o Can somebody please help get me on the right path to starting this damn script? i'm useless after all these hours and... (2 Replies)
Discussion started by: dickmartin
2 Replies
2. Shell Programming and Scripting
Hi All,
I want to write a shell script which will start some application lets say "Windows media player".
Please let me know your inputs.
Thanks in advance,
Niyati (0 Replies)
Discussion started by: Niyati
0 Replies
3. Shell Programming and Scripting
Hi,
I'd like to run a script with an optional starting point.
Meaning that if no parameter for the script => Do everything, otherwise start from the point specified in the parameter and continue till the end.
I thought of using the "case ..." but I have no result.
Script:
# ---------------... (6 Replies)
Discussion started by: ai_dba
6 Replies
4. Shell Programming and Scripting
hi all,
i need an urgent help for writing a shell script which will extract out and print a substring which is the shortest substring from the given string where first and last character of that substring will be given by the user.
for e.g.
if str="abcdpqracdpqaserd"
now if the user gives 'a'... (18 Replies)
Discussion started by: pankajd
18 Replies
5. Red Hat
the following bash script is not working in fedora-11 Could anyone help me please?
#!/bin/bash
if
-ne 0];then
echo " you are in root"
else echo " you must be in root -su mode??"
fi
exit (2 Replies)
Discussion started by: Turtel
2 Replies
6. Shell Programming and Scripting
Hi,
I have a little problem...I want to do the following things:
Have my own little script that has 2/3 functions and starts a c++ application using some parameters.
The problems appear when I start the c++ app using the shell script, the c++ takes over and after I ctrl+c the script... (0 Replies)
Discussion started by: valiadi
0 Replies
7. Shell Programming and Scripting
Hi,
I am new to shell scripting ,infact today only i started working on it.
Can any body tell me some Good tutorials that i can use and that are easy to understand
I shall be obliged (1 Reply)
Discussion started by: Gousia
1 Replies
8. UNIX for Advanced & Expert Users
hello,
How can i initialize the DC shell in Linux (REDHAT) terminal ???
thank u. (2 Replies)
Discussion started by: DEBASHISH DASH
2 Replies
9. UNIX for Dummies Questions & Answers
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
LEARN ABOUT PHP
stream_set_blocking
STREAM_SET_BLOCKING(3) 1 STREAM_SET_BLOCKING(3)
stream_set_blocking - Set blocking/non-blocking mode on a stream
SYNOPSIS
bool stream_set_blocking (resource $stream, int $mode)
DESCRIPTION
Sets blocking or non-blocking mode on a $stream.
This function works for any stream that supports non-blocking mode (currently, regular files and socket streams).
PARAMETERS
o $stream
- The stream.
o $mode
- If $mode is 0, the given stream will be switched to non-blocking mode, and if 1, it will be switched to blocking mode. This
affects calls like fgets(3) and fread(3) that read from the stream. In non-blocking mode an fgets(3) call will always return right
away while in blocking mode it will wait for data to become available on the stream.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Note
This function was previously called as set_socket_blocking(3) and later socket_set_blocking(3) but this usage is deprecated.
SEE ALSO
stream_select(3).
PHP Documentation Group STREAM_SET_BLOCKING(3)