Dear all
That's another problem from me, i wanna do a lot of if statement checking for correct input by user, will be prompt input again if the input not meet the requirement defined by If or while statement...
like this one ....
while
I know it's less effiency write the program... (14 Replies)
Hi all ,
Recently i came across this in FAQ's.
I have a file
cat rem.txt
sreedhar 20
sreedhar 10
sreedhar 15
sreedhar 18
sreedhar 16
sreedhar 30
I have to replace sreedhar with "Sridhar" if the second parameter is > 18.
I need to do it in "sed" only. I am wondering how this... (4 Replies)
Hi.. Gurus
I Have a list of .zip files in a directory. I want to check whether each .zip file having some particular file or not (say .jsp) if it's having .Jsp file then create a directory as per the .zip file and extract the content to that directory except the .jsp file, If .zip not having... (3 Replies)
testfile.csv
0","1125209",,"689202CBx18888",,"49",,,"NONMC",,,,,"01112010",,,,,,,"MTM-
"1","",,"689202ABx19005",,"49",,,"NONMC",,,,,"01072010",,,,,,,"MTM-
testfile.csv looks like above format
if the second column is null then get 23rd column and store in a different varible .. add all the... (1 Reply)
SHELL SCRIPT
Hi,
I have 3 separate files within a folder. Every File contains data in a single column like
File1 contains data
mayank
sushant
dheeraj
File2 contains
DSA_AT
MG_AT
FLAT_09
File3 contains data
123123
232323 (2 Replies)
Hi am trying to write a script which find the existence of a file from a find command output and perform a task if the file exists. Help me out with the correct syntax . Am trying with the following one but unable to get the output.
if
then <some tasks>
else
echo "file not exists"
fi (5 Replies)
Hi,
I have one requirement, create separate files (".csv") from one excel file(xlsx) with multiple sheets. These ".csv" files are my source files. So anybody please suggest me the process.
Thanks in Advance.
Regards,
Harris (3 Replies)
i have a script where i have to find the age of a file,
if
then
echo "dnb file is present for the monthly load" >> $RUNLOG
dnb="1"
else
echo "dnb file has not arrived yet" > $ERRLOG
dnb="0"
fi
i know the file is available so... (3 Replies)
hi,
i am using a simple condition
end_ct=`sqlplus -s $ORACLE_USER/$ORACLE_PASS@$ORACLE_SID << EOF
select description from bravo_statistics
where trunc(time_stamp)=trunc(sysdate)-1
and description='END CAT';
EOF`
echo $end_ct;
echo... (30 Replies)
I need to write the list of files to a new file in one column , the second column would contain the first line of that file (header record extracted through head -1 ) and the third column would contain the last record of that file (trailer record tail -1 ) .
Example :- folder where the files... (8 Replies)
Discussion started by: IshuGupta
8 Replies
LEARN ABOUT DEBIAN
dispatcher
Dispatcher(3I) InterViews Reference Manual Dispatcher(3I)NAME
Dispatcher - wait on multiple file descriptors until a condition occurs
SYNOPSIS
#include <Dispatch/dispatcher.h>
DESCRIPTION
Conceptually, the dispatcher plays the role of detecting new data on multiple input file descriptors and dispatching the data to the appro-
priate iohandlers. The dispatcher also notifies iohandlers of expired timers. Notification of either an I/O condition or an expired timer
occurs by calling one of the iohandler's virtual functions (see IOHandler(3I)). Since a program needs only one instance of Dispatcher, a
static member function is provided to create that instance if necessary and return it.
PUBLIC OPERATIONS
enum DispatcherMask { ReadMask, WriteMask, ExceptMask }
virtual IOHandler* handler(int fd, DispatcherMask)
virtual void link(int fd, DispatcherMask, IOHandler*)
virtual void unlink(int fd)
Return a file descriptor's iohandler, link a file descriptor to an iohandler, or unlink a file descriptor from its iohandlers. The
DispatcherMask describes the I/O condition that the iohandler is interested in, such as whether the file descriptor has new data
available for reading. If the I/O condition occurs, the iohandler will be expected to read data from the file descriptor, write
data to the file descriptor, or handle the exception depending on the I/O condition.
virtual void startTimer(long sec, long usec, IOHandler*)
virtual void stopTimer(IOHandler*)
Attach an iohandler to a timer or remove a timer before it expires. A timer expires after the given number of seconds and microsec-
onds have elapsed. If a timer expires, the dispatcher will notify the attached iohandler. Timers will not expire until the program
calls either variant of Dispatcher::dispatch.
virtual void dispatch()
virtual boolean dispatch(long& sec, long& usec)
With no arguments, block indefinitely until an I/O condition occurs or a timer expires and then notify the attached iohandler. With
two arguments, block no longer than the given number of seconds and microseconds. If both numbers are zero, the function will
return immediately after checking all file descriptors and timers. The return value will be true if an I/O condition caused the
function to return and false if the function returned because a timer expired or it exceeded the given poll time. The function will
decrease the given poll time by the amount of time it spent blocking.
static Dispatcher& instance()
static void instance(Dispatcher*)
With no arguments, create an instance of Dispatcher if it doesn't already exist and return it. With an argument, set the instance
of Dispatcher that will be used throughout the program.
SEE ALSO select(2), IOHandler(3I)InterViews 21 December 1990 Dispatcher(3I)