![]() |
|
|
|
|
|||||||
| 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 08:20 AM |
| perl cgi form action target | garric | Shell Programming and Scripting | 4 | 12-08-2007 10:07 PM |
| Signal Default Action | matrixmadhan | High Level Programming | 7 | 11-29-2007 05:42 PM |
| tracking user action | xitrum | UNIX for Advanced & Expert Users | 7 | 03-07-2007 01:48 PM |
| any idea to repeat a action in VI | myelvis | UNIX for Dummies Questions & Answers | 6 | 11-26-2003 03:21 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
action command
Hi..
When i refered the script /etc/rc.sysinit... i found the "action commands" like Quote:
the following error is coming... Quote:
Thanks in advance esham |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
it looks like that 'action' command is a fuction defined somewhere in another script ...
|
|
#5
|
||||
|
||||
|
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
}
|
|
#6
|
||||
|
||||
|
Thank you very much for the support...
|
||||
| Google The UNIX and Linux Forums |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|