07-27-2005
action command
Hi..
When i refered the script /etc/rc.sysinit...
i found the "action commands" like
Quote:
action $"Mounting proc filesystem: " mount -n -t proc /proc /proc
But this is not working in my shells..
the following error is coming...
Quote:
-bash: action: command not found
Please anybody help
Thanks in advance
esham
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I'm not sure in which category should I post in but I'll try in this one. Here is my problem, I'm trying to combine 2 scripts that I found useful to me. First one is this , what I'm trying to accomplish is dynamic user look up from my database. The other script is this one , this script... (0 Replies)
Discussion started by: c0mrade
0 Replies
2. UNIX for Dummies Questions & Answers
please delete and see other post.
Hi,
Im using awk to go through every line, but i have to use it twice as the first awk finds all the lines with a number in one field and the pipes it to wc, and the second does the same as the first but it has a extra pipe into sort and uniq that finds all... (2 Replies)
Discussion started by: fredted40x
2 Replies
3. Shell Programming and Scripting
in /etc/init.d/networking of an ubuntu computer, I found this code:
if ifdown -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
Shouldn't it be replace by
ifdown -a --exclude=lo
... (0 Replies)
Discussion started by: raphinou
0 Replies
4. Shell Programming and Scripting
I am writing a shell script that takes at least 2 arguments. The first is an octal representation of file permissions, the second is a command that is executed on all the files found with that permission.
#!/bin/sh
find . -perm $1 -exec $2 $3 $4 {} \;
invoked: ./script.sh 543 ls -la
what... (3 Replies)
Discussion started by: computethis
3 Replies
5. Shell Programming and Scripting
Hi All,
I need to create a script to monitor a dir for new files with ext .err and also it should b a non empty files. and perform a action or command .
We have a new ETL application that runs on a linux server, every times a etl fails it creates a .err file or updates the existing .err... (4 Replies)
Discussion started by: MAKHAN
4 Replies
6. Shell Programming and Scripting
lets explain it easy by showing the initial file and desired file:
I've a file such this that contains:
initial_file:
31/12/2011 23:46:08 38.6762 43.689 14.16 Ml 3.1
... (1 Reply)
Discussion started by: oreka18
1 Replies
LEARN ABOUT HPUX
xtappaddactionhook
XtAppAddActionHook(3) XT FUNCTIONS XtAppAddActionHook(3)
NAME
XtAppAddActionHook, XtRemoveActionHook - register an action hook procedure
SYNTAX
XtActionHookId XtAppAddActionHook(XtAppContext app_context, XtActionHookProc proc, XtPointer client_data);
void XtRemoveActionHook(XtActionHookId id);
ARGUMENTS
app_context
Specifies the application context.
proc Specifies the action hook procedure.
num_args Specifies the application-specific data to be passed to the action hook.
DESCRIPTION
XtAppAddActionHook adds the specified procedure to the front of a list maintained in the application context. In the future, when an action
routine is about to be invoked for any widget in this application context, either through the translation manager or via XtCallActionProc,
the action hohok procedures will be called in reverse order of registration jut prior to invoking the action routine.
Action hook procedures are removed automatically and the XtActionHookId s destroyed when the application context in which they were added
is destroyed.
XtRemoveActionHook removes the specified action hook procedure from the list in which it was registered.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.1.3 XtAppAddActionHook(3)