12-03-2008
it should be posible to replace a script while it is running withou any problem bcs the file is loaded into memory at execution time
10 More Discussions You Might Find Interesting
1. AIX
I've just landed in a situation where an old IBM RS/6000 7025 F40 running AIX 4.2.1 has had it's tape drive fail. The tape drive in question is an HP C1533A 4mm 4GB/8GB DAT drive. It repeatedly gets write failures, and my trusty techique of whacking the cleaning tape in hasn't worked. Unfortunately... (2 Replies)
Discussion started by: phaedrus
2 Replies
2. Solaris
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell.
How do i distinguish whether my script is run by init process or by shell??
Will the command
/proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Discussion started by: vickylife
2 Replies
3. Shell Programming and Scripting
I have a script file as below named test1.sh
sed -e 's/xxxkeys/$1/g' template1.asp > template1.txt
sed -e 's/xxxkeys/$2/g' template2.asp > template2.txt
sed -e 's/xxxkeys/$3/g' template3.asp > template3.txt
sed -e 's/xxxkeys/$4/g' template4.asp > template4.txt
I want to replace $1 with a,... (1 Reply)
Discussion started by: satgur
1 Replies
4. Shell Programming and Scripting
Hi,
I'm using MKS tool kit to execute a unix script on windows.I'm trying to replace a word in a file.
I'm using sed 's/word/$replaceword/g' $OutputFile
This is not working.Please advice where i'm wrong.
thanks (4 Replies)
Discussion started by: ammu
4 Replies
5. Shell Programming and Scripting
Hi
I have written a script for automating a program. There is a string in 2 lines that needs altering from input.
The 2 lines are:
prepare_flexreceptor4.py -r rec_rigid.pdbqt -s TYR119_TRP312 -x rec_flex.pdbqt
and
prepare_flexdocking4.py -l ind.pdbqt -r rec_flex.pdbqt -s TYR119_TRP312... (3 Replies)
Discussion started by: gav2251
3 Replies
6. Shell Programming and Scripting
hi I have this line in my perl script
if (($cookie =~ /^cookie(.*)\/(.*)/) && ($ !~ /^cookie(10)\/(.*)|/)) {
$cookienumber = "$1.$2";
}
now if the result is cookie1/0,
my $cookienumber would be 1.0
but if the result is cookie1/0/0
... (5 Replies)
Discussion started by: tententen
5 Replies
7. Shell Programming and Scripting
Hi all ,
I have written the script but the ip address is not getting replaced correct me i ima wrong
#!/bin/bash
echo "enetr ip"
read $a
echo $a
b=`grep -o '\{1,3\}\.\{1,3\}\.\{1,3\}\.\{1,3\}' /usr/local/kalyan/mysqlup.sh`
echo "$b"
sed -i 's/'$b'/'$a'/g' /usr/local/kalyan/mysqlup.sh
... (1 Reply)
Discussion started by: kalyankalyan
1 Replies
8. Shell Programming and Scripting
My friend and I are working on a project together and we are trying to create a shell script that renames, replaces a string in a text file. The newly created file with the substitution would replace the name of the original file. And the original file would be saved as "____.txt.bak"
This is... (6 Replies)
Discussion started by: jzhang172
6 Replies
9. Shell Programming and Scripting
Hi Guys,
I am new to bash and I can't figure this one out.
OS: SunOS
I have a file: myfile
A cat of myfile shows it to contain:
one * two
The shell is as following:
FILE="path/myfile"
RESULT=$(cat "$FILE"|grep one)
echo $RESULT (2 Replies)
Discussion started by: foxpaws
2 Replies
10. Shell Programming and Scripting
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies
LEARN ABOUT CENTOS
error::pass5
ERROR::PASS5(7stap) ERROR::PASS5(7stap)
NAME
error::pass5 - systemtap pass-5 errors
DESCRIPTION
Errors that occur during pass 5 (execution) can have a variety of causes.
exceptional events during script execution
The systemtap translator and runtime include numerous error checks that aim to protect the systems and the users from mistakes or
transient conditions. The script may deliberately call the error() tapset function to signal a problem. Some memory needed for
accessing $context variables may be temporarily unavailable. Consider using the try/catch construct to wrap script fragments in
exception-handling code. Consider using the stap --suppress-handler-errors or stap --skip-badvars option.
resource exhaustion
One of several types of space or time resource limits may be exceeded by the script, including system overload, too many tuples to
be stored in an array, etc. Some of the error messages identify the constraint by macro name, which may be individually raised.
Consider using the stap --suppress-handler-errors option. Extend or disable resource limits using the stap -DLIMIT=NNNN option.
remote execution server problems
If you use the stap --remote option to direct a systemtap script to be executed somewhere else, ensure that an SSH connection may be
made to the remote host, and that it has the current systemtap runtime installed & available.
installation/permission problems
It is possible that your installation of systemtap was not correctly installed. For example, the /usr/bin/staprun program may lack
the necessary setuid permissions, or your invoking userid might not have sufficient privileges (root, or stapusr and related group
memberships). Environment variables may interfere with locating /usr/libexec/.../stapio.
errors from target program
The program invoked by the stap -c CMD option may exit with a non-zero code.
uncaught exceptions in the target program
When using --runtime=dyninst you may encounter an issue where the target program aborts with a message like "terminate called after
throwing an instance of 'foo_exception'". This is unfortunately a limitation of Dyninst, which sometimes prevents exceptions from
properly unwinding through instrumented code.
GATHERING MORE INFORMATION
Increasing the verbosity of pass-5 with an option such as --vp 00001 can help pinpoint the problem.
SEE ALSO
stap(1),
http://sourceware.org/systemtap/wiki/TipExhaustedResourceErrors,
error::fault(7stap),
error::reporting(7stap)
ERROR::PASS5(7stap)