Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Hi have one Perl file inside that i am defining
at an array file.
@temp_vmdk_files = `grep vmdk '$guest_vmx'`
where my $guest_vmx=/vmfs/volumes/47e40fec-9c8bb7f7-d076-001422159f8a/BES Exchange/BES-Exchange.vmx
and i am just want to do grep of "vmdk" files from the above path
but when... (5 Replies)
Hi all,
I have the following snippet of code..
#!/bin/sh
echo "run perl script............"
#Run the verification script
perl bill_ver
echo " perl script completed....."
echo "rename files......"
#Remove from all file in the directories test, test1, test2, test3
for f in... (3 Replies)
Hi there,
I am new to Perl and KSH. The system I am using picks up the KSH scripts and uses them in a batch job control system.
I am trying to set a variable from a perl command
#!/bin/ksh -eaxp
#*******************************************************************************
# Testing... (5 Replies)
How to write a shell script inside a perl script code? It is possible or not. Actually i have a perl script code and i need some values from the shell script code and vice-versa i.e. some values of shell script use by the perl scipt and some values of perl script use by the shell script. So how can... (1 Reply)
Hi all,
I basically have an if statement that says if you have more than 5 changes you need to have the force flag set to 1 to proceed. like this
if ((($Changes > 5) && ($force == 1)) || (($nChanges > 0) && ($Changes < 6))) {
I now need to allow the force flag to be either 1 or 2 to... (2 Replies)
Hi UNIX Pros!
Newbie here, I would like to ask if it is possible to use perl commands inside a shell script? i created a simple script which connects to oracle and run queries which the script saves to a separate .txt file for each query issued. What i want to do is to create a presentable and... (7 Replies)
HEllo!!
I need a script in perl that see inside a file(file.txt) that has only one row.
The row contains only this text:
logs_yearly = 20120628113345
I want that the script does this:
"Search in the file, if the date 20120628 is actual date"
Thank you!!
---------- Post... (4 Replies)
I am working on converting shell to Perl script. In shell we have built in function
trap
Do you know alternative in Perl or actually we don't need it?
Thanks for contribution (3 Replies)
Discussion started by: digioleg54
3 Replies
LEARN ABOUT DEBIAN
test::valgrind::command::perl
Test::Valgrind::Command::Perl(3pm) User Contributed Perl Documentation Test::Valgrind::Command::Perl(3pm)NAME
Test::Valgrind::Command::Perl - A Test::Valgrind command that invokes perl.
VERSION
Version 1.13
DESCRIPTION
This command is the base for all "perl"-based commands. It handles the suppression generation and sets the main command-line flags.
METHODS
This class inherits Test::Valgrind::Command.
"new perl => $^X, inc => @INC, taint_mode => $taint_mode, ..."
The package constructor, which takes several options :
o The "perl" option specifies which "perl" executable will run the arugment list given in "args".
Defaults to $^X.
o "inc" is a reference to an array of paths that will be passed as "-I" to the invoked command.
Defaults to @INC.
o $taint_mode is a boolean that specifies if the script should be run under taint mode.
Defaults to false.
Other arguments are passed straight to "Test::Valgrind::Command->new".
"perl"
Read-only accessor for the "perl" option.
"inc"
Read-only accessor for the "inc" option.
"taint_mode"
Read-only accessor for the "taint_mode" option.
"env $session"
Returns an Env::Sanctify object that sets the environment variables "PERL_DESTRUCT_LEVEL" to 3 and "PERL_DL_NONLAZY" to 1 during the run.
SEE ALSO
Test::Valgrind, Test::Valgrind::Command.
Env::Sanctify.
AUTHOR
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
You can contact me by mail or on "irc.perl.org" (vincent).
BUGS
Please report any bugs or feature requests to "bug-test-valgrind at rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>. I will be
notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Valgrind::Command::Perl
COPYRIGHT & LICENSE
Copyright 2009,2010,2011 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-08-25 Test::Valgrind::Command::Perl(3pm)