linux redhat 8.0
I am getting accustomed to using the -exec command to get around my databse.. and use it to edit and update files..! is this more apllicable than jumping from one directory to the other.. I have set up the databse so that the inode #'s are accessable and can get me from one... (0 Replies)
im having trouble with the comprehending the exec command and the use of file descriptors.
given:
#!/bin/sh
exec 4>&1
exec 1>&2
exec 2>&4
exec 4>&-
echo Hello
would the standard output of this script be sent to STDOUT, STDERR or neither and why???
thanks for the help. (1 Reply)
i have a script where i am reading some lines from a file into another file..
script works fine in bash..
#!/usr/bin/csh
awk 'NR>20&&NR<32' try.sum | awk '{print $4 }' >io
awk 'NR>20&&NR<32' try.sum | awk '{print $9 }' >io1
awk 'NR>20&&NR<32' try.sum | awk '{print $14 }'>io2
exec 10<io... (1 Reply)
Need to close files which descriptor number are larger than 9 in ksh.
'exec 10>&-' fails with 'ksh: 10: not found'. How do you specify file descriptors which occupies two or more digits in ksh script?
Thanks,
Masaki (2 Replies)
Hi,
I need the data to be appended to the file using exec command in linux.
I am able to add the data to a file using exec command but the file is getting overwritten.
Above exec command is used to overwite in a file.
When I use "exec >>& fileName", getting "syntax error near... (3 Replies)
Hi can some one explain the following command , It would really help if some can really elloborate on what is happening out here
export PATH | exec /bin/sh ./auto_approve :q
P.S: This is the first time i am using exec ,so an elloboration what does it do and what is the use of the :q will be... (1 Reply)
I have a script (ksh, Linux) which is about 500 lines and this is only a small requirement. Below is an example of my requirement.
FunctionThis(){
echo "You are in this. Goes to log"
}
FunctionThat(){
echo "You are in That. Goes to log"
}
FunctionScreen(){
echo "You are in Screen.... (3 Replies)
Hello.
From a script, a command for a test is use :
find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc'
Tha command... (3 Replies)
Discussion started by: jcdole
3 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)