Hi,
I was using AIX - ksh shell , and inorder to debug shell script I used set -vx to echo all the commands which are being executed.
Can anybody tell me the corresponding method in HP-UX - in tcsh shell.
Regards
Shihab (1 Reply)
Hello all,
I am trying to run a script and have not had much success running it...ne help debugging it will be appreciated..The ftp script alone works but not within the while loop.
below is the script
#!/usr/bin/ksh
destination_server=servename
destination_user_id=un... (1 Reply)
Anyone have a perl script that can be run via a web browser to turn ftp or telnet on and off in etc/inetd.conf ? Believe it or not but I ride a motorcycle a lot in the summer and carry a laptop in my saddlebags to connect from almost anywhere via Verizon alongside the highway. However, have too... (0 Replies)
Hi all,
Am working on a script to understand the flow control of it..
Since i am from a C background i looking out for an easy way to analyze the script as it runs ..
In C/C++ we have F7 that starts execution from main() and proceeds accordingly..
I was wondering if there is a same approach... (2 Replies)
is there any way you can add a breakpoint in a script so you can stop on it?
i have used -xv in my shebang but the script just runs and i want it to stop at a specific point in the script.
appreciate any help. (1 Reply)
Note: Not a programmer by profession but occasionally have to program.
I am looking for general methods and freely/readily available tools employed to debug problems during development of perl scripts. Anything that has really helped you out with problems you just couldn't find.
A couple of... (5 Replies)
Newbie question. I cannot get "set -n" or "set -noexec on" to work on Linux or AIX! According to the man page and what I read online, it should inform me of syntax errors without executing commands in your script.
So, can someone PLEASE explain why this does not work?
... (2 Replies)
hi all
only the weirdest thing happened with me just now. I was debugging a shell script and I found that a step that was supposed to execute later was getting executed prior to another step for no reason. You know any ?
i mean have a look at the following command-
here it tries to grep... (7 Replies)
Hi gurus,
My boss has asked me to create a unix script to check header files vs data files and to send an email in case of any failure.
I have very little unix scripting experience and it was now long ago so I'm a bit concerned I wont be able to turn this around by end of day tomorrow.
... (4 Replies)
the attached perl script is a deamon that, once kicked off from the command line, it runs in the background and waits for the master server to tell it what plugins to run.
the script works well. but the problem is, whenever i start it, after about a few seconds of starting it, i start getting... (4 Replies)
Discussion started by: SkySmart
4 Replies
LEARN ABOUT REDHAT
file::checktree
File::CheckTree(3pm) Perl Programmers Reference Guide File::CheckTree(3pm)NAME
validate - run many filetest checks on a tree
SYNOPSIS
use File::CheckTree;
$num_warnings = validate( q{
/vmunix -e || die
/boot -e || die
/bin cd
csh -ex
csh !-ug
sh -ex
sh !-ug
/usr -d || warn "What happened to $file?
"
});
DESCRIPTION
The validate() routine takes a single multiline string consisting of directives, each containing a filename plus a file test to try on it.
(The file test may also be a "cd", causing subsequent relative filenames to be interpreted relative to that directory.) After the file
test you may put "|| die" to make it a fatal error if the file test fails. The default is "|| warn". The file test may optionally have a
"!' prepended to test for the opposite condition. If you do a cd and then list some relative filenames, you may want to indent them
slightly for readability. If you supply your own die() or warn() message, you can use $file to interpolate the filename.
Filetests may be bunched: "-rwx" tests for all of "-r", "-w", and "-x". Only the first failed test of the bunch will produce a warning.
The routine returns the number of warnings issued.
AUTHOR
Unknown. Revised by Paul Grassie <grassie@perl.com> in 2002.
HISTORY
File::CheckTree used to not display fatal error messages. It used to count only those warnings produced by a generic "|| warn" (and not
those in which the user supplied the message). In addition, the validate() routine would leave the user program in whatever directory was
last entered through the use of "cd" directives. These bugs were fixed during the development of perl 5.8. The first fixed version of
File::CheckTree was 4.2.
perl v5.8.0 2002-06-01 File::CheckTree(3pm)