I'd handle it as a stream instead of using arrays and dynamic variable names. xargs can be used to attach the stream of one program to the arguments of another to make things happen in even fewer shell steps. Much more straightforward.
I'd like to see what the output for pgrep -f "gcalctool" and cd /proc ; ls -ld somepid looks like for your system or I may get this somewhat wrong.
Hello all
while writing a small script , i got stuck with this simple thing.Hope you guyz can help.
Iam trying to read password
echo"enter password"
read $pwd
now i have to check this
echo"enter password to proceed"
read $pwd
now i have to check both the values of the... (2 Replies)
Hello,
I am having a bit of hard time to get my head around this one. I really hope someone is out there to help me out!
Background of my code:
I am doing some automation where I am verifying multiple files in multiple sub folders and if they are all identical, I would echo a line with my test... (0 Replies)
Hi,
I am trying to write a script to show the status of a Network card.
Variables:
chosennic is a read variable
statuss=`/sbin/ifconfig $chosennic | grep MTU | awk '{print $1}'`
ipadd=`/sbin/ifconfig $chosennic | grep Bcast | awk '{print $2}' | awk -F : '{print $2}'`... (2 Replies)
Hi!
I've come up with a ksh-script that produces one or more lists of hosts.
At the and of the script, I would like to print only those hosts that exists in all the lists.
Ex.
HOSTS="host1 host2 host3 host11"
HOSTS="host1 host2 host4"
HOSTS="host2 host11"
HOSTS="host2 host5 host6 host7... (1 Reply)
Hi,
I am a noob at shell scripting.
basically I am trying to compare row counts from 8 tables in different databases. I have managed to get the row counts using awk from the spool files for both databases.
now I have 16 variables with me
for database 1 :
$A
$B
$C
$D
$E
$F
$G... (3 Replies)
Hi all,
I have two files as below. I need to compare field 2 of file 1 against field 1 of file 2 and field 5 of file 1 against filed 2 of file 2. If both matches , then create a result file 1 with first file data and if not matches , then create file with first fie data. Please help me in... (12 Replies)
I want to develop one unix script that will first match the multiple files on one server say A with multiple files on another server say B and copy those to server A. After that need to compare the contents of these 2 set of multiple files on different location on same server and generate the... (4 Replies)
Hi ,
Can any please help the below requirement on all multiple servers and multiple dbs.
update configuration set value='yes' ;1)
the above statement apply on 31 Databases at a time on different Ip address
eg : 10.104.1.12 (unix ip address )
the above ip box contains 4 db's eg : db... (2 Replies)
Discussion started by: venkat918
2 Replies
LEARN ABOUT DEBIAN
mic-chroot
MIC-CHROOT(1) General Commands Manual MIC-CHROOT(1)NAME
mc-chroot - chroot into a live image in order to do some changes
SYNOPSIS
mic-chroot [options] <image|image fs>
<image> is a live image file name, <image fs> is a directory path which
contains the whole file system unpacked from a live image.
DESCRIPTION
mic-chroot can chroot into a live image to do some changes, you can use it to unpack a live image then do some changes, once changes are
done, you can regenerate a live image including those changes you did.
mic-image-manager has a GUI tool for mic-chroot, you can use it if you prefer to use GUI instead of command line.
OPTIONS --version show version number
-h, --help show this help message
-s SAVETO, --save-to=SAVETO Save unpacked filesystem to the specified path
--unpack-only Just unpack an image, this is used tounpack an image with -s option together
-b BINDMOUNTS, --bind-mounts=BINDMOUNTS Specify bind mount list, for example: -b "/proc:/proc;/:/parentroot"
-c CONVERTTO, --convert-to=CONVERTTO Convert it to the specified type live image on exiting, the allowed value is livecd or liveusb
--convert-only Just convert an image, this will skip chroot and directly convert an image/filesytem with -c option together
-o OUTDIR, --outdir=OUTDIR Output directory to use (default: current work dir)
EXAMPLES
Unpack an image to a directory and chroot into it:
mic-chroot -s /my/fs/root
EXIT STATUS
mic-image-convertor returns a zero exist status if it succeeds, otherwise return non-zero and print error message.
AUTHOR
Yi Yang, Anas Nashif, Jianfeng Ding
SEE ALSO mic-image-creator(1), mic-convertor(1), mic-image-writer(1), mic-livecd-iso-to-disk(1), mic-image-manager(1)perl v5.12.3 2011-05-31 MIC-CHROOT(1)