11-29-2010
Use set -x inside the script to see what's going on.
These 2 Users Gave Thanks to Scrutinizer For This Post:
10 More Discussions You Might Find Interesting
1. Programming
How to invoke an Unix Script from C program?
(or)
How to invoke another C program from a C program?
thanks
Karthik (5 Replies)
Discussion started by: fermisoft
5 Replies
2. UNIX for Dummies Questions & Answers
I have a data file contain the following information:
1
2
3
4
5
10
11
30
90
300
9
29
and on and on
I need to create a program with give me the following data format:
Jon
A (2 Replies)
Discussion started by: bobo
2 Replies
3. Shell Programming and Scripting
Hi all,
I don't know how to redirect a variable in this case:
while true
do
./ready_data
...
done
ready_data should read a file looking for an ID, if this doesn't exist then add the last ID seen into the first line.
When ID exists there is no problem, but when ID doesn't... (0 Replies)
Discussion started by: csecnarf
0 Replies
4. Shell Programming and Scripting
eg: sample.dat
21111111110000652 B86860003OLFXXX0000001_20081227
21111111110000652 B86860003ODL-SP0000002_20081227
21111111110000652-B94030001ODL-CH0000003_20081227
22222222220000653-B94030001OLFXXX0000011_20081227
23333333330000654-E71060001OLFXXX0000012_20081227
24444444440000655... (5 Replies)
Discussion started by: kshuser
5 Replies
5. UNIX for Dummies Questions & Answers
I have a program R installed on Ubuntu under /usr/bin/R. I also have a different version installed under /home/user/R. I would like to invoke the locally installed program temporarily. How can I do this automatically by running a script and then switching to the default program?
thanks,
SM (2 Replies)
Discussion started by: smeme
2 Replies
6. Shell Programming and Scripting
I am using a very simple script (MUS) to process some files where the input file for the binary application I am running has to be named infile. So I have this:
#!/bin/bash
for i in {1..n}
do
mv block${i} infile
done
./dnadist <<EOF
D
Y
EOF
However, I want to use dnadist inside the... (3 Replies)
Discussion started by: Xterra
3 Replies
7. Shell Programming and Scripting
Hi, I was hoping for help with a for loop to run a program (vina) repeatedly using all the files in a folder as input. Currently my code looks like this:
#!/bin/bash
FILES=/home/afalk/Desktop/battest/*.pdbqt
for f in $FILES do
vina --config /home/afalk/Desktop/A.txt --ligand "$f".pdbqt
done... (5 Replies)
Discussion started by: oldmanwinter
5 Replies
8. UNIX for Dummies Questions & Answers
Hello,
So I have approximately 300 files of raw data (.txt) files that I am using to perform statistical analysis. I have been able to construct a Fortran program that is able to perform my statistical analysis on a file by file basis.
However, I now want to be able to loop program through... (19 Replies)
Discussion started by: Jimmyd24
19 Replies
9. UNIX for Dummies Questions & Answers
Hi, I have lost a lot of hours by looking for answer but without results.. My problem is that:
I use Debian GNU/Linux and I want to configure cron in order to run rtorrent every day between 24.00 and 09.00. That part I have achieved, but I couldn't forced cron to make it visible on any of my... (10 Replies)
Discussion started by: juru_piotr
10 Replies
10. UNIX for Dummies Questions & Answers
hi all,
is there a way to run a script upon invoking an application . for eg if i click on mozilla i want a script to run , before runniing mozilla , maybe ask a password or something only then open mozilla (2 Replies)
Discussion started by: mithun1!
2 Replies
LEARN ABOUT DEBIAN
updatejail
JAILER(8) System Manager's Manual JAILER(8)
NAME
updatejail - is a script for rebuilding a chrooted environment made with jailer
SYNOPSIS
updatejail <config.file> <jail identifier>
DESCRIPTION
updatejail is a script which wipes out a chroot environment and rebuilds it. By default it leaves the /dev/log device in the chroot, so you
do not need to restart system logger after updating a jail.
WARNING
Do not configure your daemon inside your jail, because updatejail script will wipe out all the data inside the jail. If you would like to
change any setting inside the jail, make the changes in the original location and then run updatejail . This makes it possible to place a
jail even to a ramdisk.
Options
<config.file>
The configuration file which contains the settings of the new chrooted environment. For further information see man 8 jailer.conf
<jail identifier>
The identifier which specifies which jail will be used. Identifiers need to be defined at jailer.conf . This identifier has to match
the directory name used in the Root location.
BUGS
updatejail will not parse the configuration file and determine the Root location by itself.
For updatejail to work the Root location for the jail identifier has to end with the name of the identifier itself. For example, if your
identifier is apache the Root location in jailer.conf has to be something like /chroots/apache.
SEE ALSO
updatejail(8) jailer.conf(5),
AUTHOR
This manual page was written by Peter Holtzl <peter.holtzl@balabit.hu>.
December 4, 2001 JAILER(8)