Hi ,
I have seen some log files where they have captured the command that is being executed, comments present in the scripts and the out put of the command as well, through scripts. could any one of you please let me know how do i do that?
Thanks in advance.
Cheers,
Waseem (4 Replies)
I need a command, which could run mutliple commands from a file.
Let's say, I have
mv fileA1 fileB1
mv fileA2 fileB2
.....
mv fileA20 fileB20
I put these commands in a file, then I need a command to run the file as a whole so that I don't need to type 20 times...
Anyone tell me how to... (8 Replies)
Hi all,
I am trying to create a shell script from solaris 10 server to run a command into multiple specific value in one file. The command is related to Oracle/Sun JES2005Q4 directory server.
#this is the command,
#from path /jes/ds/slapd-rldap1
./ns-inactivate.pl -h mldap1 -p 389 -D... (12 Replies)
Is there a way to run an arbitrary command under a specified remapping of path names, i.e. so that when the command opens file named A it would instead open file named B?
Essentially, I'd like to intercept the open() system call and modify its argument.
I've seen references on the web for... (3 Replies)
Say I have a text file, with several lines. Each line may contain spaces or the # symbol.
For each line, I want to pass that line as the path of a file, in order to add it to a tar file.
I've tried this but doesn't work:
cat contents.txt | xargs -0 `tar -uvf contents.tar $1`Any ideas?
... (3 Replies)
Hi ALL,
How can I make a script take data from a file and execute the commands within `` in the file n put that that in a variable?
for i in `cat file`
do
file=`grep -i key file`
cp ${file} test
done
file
/tmp/`date +y`log
/tmp/unix`date +y`log (1 Reply)
Hi
I have jobs (some 1000) defined in a file and I want to read those jobs and run a a command.
For example:
jobs.txt
abc
efg
I want to read the entire file and run the following command
Delete -JOB "abc"
Deleteing abc...
Delete -JOB "efg"
Delete efg...
Can somebody help me... (4 Replies)
I have to provide a listing of all usernames and group assignments on Linux servers running SLES 12 SP 3. I am trying to automate this via a #for loop. It is not doing as desired and could use a little assistance. Here is the code:
#!/bin/bash
for uname in 'cat $(hostname)_unlist.txt'
do... (8 Replies)
Discussion started by: Kentlee65
8 Replies
LEARN ABOUT DEBIAN
mojolicious::command::generate::plugin
Mojolicious::Command::generate::plugin(3pm) User Contributed Perl Documentation Mojolicious::Command::generate::plugin(3pm)NAME
Mojolicious::Command::generate::plugin - Plugin generator command
SYNOPSIS
use Mojolicious::Command::generate::plugin;
my $plugin = Mojolicious::Command::generate::plugin->new;
$plugin->run(@ARGV);
DESCRIPTION
Mojolicious::Command::generate::plugin generates directory structures for fully functional Mojolicious plugins.
ATTRIBUTES
Mojolicious::Command::generate::plugin inherits all attributes from Mojo::Command and implements the following new ones.
"description"
my $description = $plugin->description;
$plugin = $plugin->description('Foo!');
Short description of this command, used for the command list.
"usage"
my $usage = $plugin->usage;
$plugin = $plugin->usage('Foo!');
Usage information for this command, used for the help screen.
METHODS
Mojolicious::Command::generate::plugin inherits all methods from Mojo::Command and implements the following new ones.
"run"
$plugin->run(@ARGV);
Run this command.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Command::generate::plugin(3pm)