![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CEP: What about the action? | iBot | Complex Event Processing RSS News | 0 | 02-15-2008 07:20 AM |
| perl cgi form action target | garric | Shell Programming and Scripting | 4 | 12-08-2007 09:07 PM |
| Signal Default Action | matrixmadhan | High Level Programming | 7 | 11-29-2007 04:42 PM |
| tracking user action | xitrum | UNIX for Advanced & Expert Users | 7 | 03-07-2007 12:48 PM |
| any idea to repeat a action in VI | myelvis | UNIX for Dummies Questions & Answers | 6 | 11-26-2003 02:21 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
Please post your OS and version. Also, is the example given,
Quote:
Quote:
Also see rc.sysinit script Last edited by RTM; 07-27-2005 at 02:25 PM. |
|
||||
|
My OS is RedHAT 9 kernel 2.6.10
what my problem is that i need to implement that [ OK ] like functionality in my script .. so i refered the rc.sysinit so i found that its some command like "action" doing this.. If iam wrong,pls correct me... esham |
|
||||
|
here is it, partner... action is a function defined on /etc/rc.d/init.d/functions
Code:
# Run some action. Log its output.
action() {
STRING=$1
echo -n "$STRING "
shift
initlog $INITLOG_ARGS -c "$*" && success $"$STRING" || failure $"$STRING"
rc=$?
echo
return $rc
}
|
| Tags |
| linux |
| Thread Tools | |
| Display Modes | |
|
|