08-15-2011
What are you trying to execute (script content...)?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: hkapil
2 Replies
2. Shell Programming and Scripting
Hi Perl/UNIX experts,
I have a problem in running a shell script from my perl script (auto.pl).
I run the perl script using
perl auto.pl
from the shell prompt
The shell script picks the files in "input" folder and procesess it.
The shell script blue.sh has this code.
export... (16 Replies)
Discussion started by: hifake
16 Replies
3. Shell Programming and Scripting
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies
4. Shell Programming and Scripting
Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Discussion started by: charlei
6 Replies
5. Shell Programming and Scripting
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies
6. Shell Programming and Scripting
Hi guys,
I have a simple question, I want to store the output of the following command:
As you can see it is running all the time, and we get a new line every 3sec.
I just want to store these new lines into a single variable, so I can use it into a script.
To clear the screen, and... (4 Replies)
Discussion started by: Thireus
4 Replies
7. Shell Programming and Scripting
Hi, this's Pom. I'm quite a new one for shell script but I have to do sql on shell script to query some information from database.
I found a concern to get a new line...When I run my script, it retrieves all data as wondering but it's shown in one line :(
What should I do? I'm not sure that... (2 Replies)
Discussion started by: Kapom
2 Replies
8. Shell Programming and Scripting
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies
9. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT DEBIAN
test::inline::script
Test::Inline::Script(3pm) User Contributed Perl Documentation Test::Inline::Script(3pm)
NAME
Test::Inline::Script - Generate the test file for a single source file
DESCRIPTION
This class is where the heavy lifting happens to actually generating a test file takes place. Given a source filename, this modules will
load it, parse out the relavent bits, put them into order based on the tags, and then merge them into a test file.
METHODS
new
my $File = Test::Inline::Script->new( $class, @sections, $check_count );
The "new" constructor takes a class name, set of Section objects and an optional "check_count" flag.
Returns a Test::Inline::Script object on success. Returns "undef" on error.
class
Returns the class that the test file will test
filename
my $filename = $File->filename;
The "filename" method returns the name of the output file that the tests should be written to. For example, the class "Foo::Bar" would have
the filename value "foo_bar.t".
config
my $config = $File->config;
The "config" method returns the config object for the file, assuming that it has one. If more than one are found, the first will be used,
and any additional config sections discarded.
Returns a Test::Inline::Config object on success, or false if the file does not contain a config section.
setup
my @setup = $File->setup;
The "setup" method returns the setup sections from the file, in the same order as in the file.
Returns a list of setup Test::Inline::Section objects, the null array "()" if the file does not contain any setup objects.
sections
my @sections = $File->sections;
The "sections" method returns all normal sections from the file, in the same order as in the file. This may not be the order they will be
written to the test file, for that you should see the "sorted" method.
Returns a list of Test::Inline::Section objects, or the null array "()" if the file does not contain any non-setup sections.
sorted
The "sorted" method returns all normal sections from the file, in an order that satisfies any dependencies in the sections.
Returns a reference to an array of Test::Inline::Section objects, 0 if the file does not contain any non-setup sections, or "undef" on
error.
tests
If the number of tests for all of the sections within the file are known, then the number of tests for the entire file can also be
determined.
The "tests" method determines if the number of tests can be known, and if so, calculates and returns the number of tests. Returns false if
the number of tests is not known.
merged_content
The "merged_content" method generates and returns the merged contents of all the sections in the file, including the setup sections at the
beginning. The method does not return the entire file, merely the part contained in the sections. For the full file contents, see the
"file_content" method.
Returns a string containing the merged section content on success, false if there is no content, despite the existance of sections ( which
would have been empty ), or "undef" on error.
SUPPORT
See the main SUPPORT section.
AUTHOR
Adam Kennedy <adamk@cpan.org>, <http://ali.as/>
COPYRIGHT
Copyright 2004 - 2010 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.12.4 2010-11-22 Test::Inline::Script(3pm)