Hi everybody..
I need to enter in bash mode and then run a command and this just in a single command line.
I tried : "bash ^M| somecommand" but nothing..
How do I do to simulate the return button just right after the bash command ?
Thanks.. (8 Replies)
Dear Unix Guru,
I have several directories as below
/home/user/
dir1
dir2
dir3
Each directory has different size. I want to print each directory size (Solaris command du -hs .)
Can you please guide me how to achieve this?
Thanks
Bala (2 Replies)
hey gents,
I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the enumeration and sed to clean up the results for use by snmpwalk. Once i get all the data organized I'm... (8 Replies)
Dear Experts,
how to run multiple scp commands from single scripts.
In a directory oracle redo files accumulate. i would like to copy those redo logs to my standby server. For same i am using scp to copy the files. where i am monitoring that as it is sending the files sequentially most of... (1 Reply)
Hi,
I have a requirement with,
No~Dt~Notes
1~2011/08/1~"aaa
bbb
ccc
ddd
eee
fff
ggg
hhh"
Single column alone got splitted into multiple lines.
I require the output as
No~Dt~Notes
1~2011/08/1~"aaa<>bbb<>ccc<>ddd<>eee<>fff<>ggg<>hhh"
mean to say those new lines to be... (1 Reply)
Hi
Can we run the linux command and per script in a single command
$ cd /usr/local/adm/ ;ctsv scmtest_qabuild ;cspec.pl scmtest
This is a combination of linux and clearcase command and last one is perl script with argument.
I can see the first and 2nd coomand is executing but last... (6 Replies)
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
myenv.sh script sets LOG_DIR variable.
I can run the script and echo the variable in a single line as:
# First set LOG_DIR to some dummy 'NONE' value
$ export LOG_DIR="NONE"
$ echo ${LOG_DIR}
NONE
$ cat /tmp/bin/myenv.sh
export LOG_DIR="/tmp/log"
#The below command doesn't show the... (2 Replies)
Hi ,
Can someone help!
I need a shell script to run multiple scripts by using single shell script,
incase any one of the scripts fails, it should get exit and after trouble shooting if we re-execute it, it should start from the failed script.
I have a written a scripting till the... (1 Reply)
Hi All,
How can i run a single command on multiple servers with or without giving credentials.
I have a file(servers.txt) which has got list of servers and i want to run a command lsb_release -dr on all these servers and get output of those servers against each server.
I tried below code... (9 Replies)
Discussion started by: darling
9 Replies
LEARN ABOUT DEBIAN
arch::tarball
Arch::Tarball(3pm) User Contributed Perl Documentation Arch::Tarball(3pm)NAME
Arch::Tarball - an interface to create and work with tarballs
SYNOPSIS
use Arch::Tarball
my $tarball = Arch::Tarball->new;
my $pipe = $tarball->create(
dir => '/path/to/subdir-to-pack',
base_name => 'new-subdir-to-pack',
pipe => 1,
);
DESCRIPTION
Arch::Tarball provides an object oriented interface to work with (create, examine or extract) standard gzipped tarballs.
Note: As functionality is added only when needed, a lot of features are currently not implemented.
METHODS
The following functions are available:
new, create, extract, list.
new %opts
Creates a new Arch::Tarball object.
The following parameters can be set via %opts:
tar The name of the tar executable. Defaults to "tar".
file
The filename of the Tarball.
create %opts
Creates a new tarball (tar.gz) from a given directory structure.
create understands the following options:
dir (mandatory)
Specifies the base directory for the tarball. The given directory and recursively its content will be added to the tarball. The
directory's basename will be used as the first and the only subdirectory in the tarball.
base_name
Allow the programmer to specify a different base directory name for the tarball content than the basename of dir. In this case,
'cp' process is launched to temporarily rename the last element of dir.
pipe
When set, create does not create a physical tarball but writes the tarballs content to a newly created pipe. The pipe is returned
by the create method.
Note: Currently the pipe option is mandatory.
extract %opts
Extracts the tarball to a given target directory, specified by dir option. If dir option is not given, a temporary directory is
created that will hold the extracted dirs/files. This directory is returned.
The file option specifies the tarball file name. It may be given in the constructor instead.
list %opts (not implemented yet)
Returns a list of files and directories in the tarball.
BUGS
Most functionality is currently not implemented. If you need part of the missing functionality, please contact the authors.
Patches are greatly appreciated.
AUTHORS
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel).
Enno Cramer (uebergeek@web.de--2003/arch-perl--devel).
perl v5.10.1 2005-04-22 Arch::Tarball(3pm)