08-30-2010
This is exactly what I'm looking for! Thanks!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi -
I am new to unix scripts...I need to move several directories on multiple servers to new directories. (0 Replies)
Discussion started by: mackdaddy07
0 Replies
2. Solaris
I would like to extend a logical drive on our 3510. I have four unallocated disks which I would like to use for this purpose.
The 3510 supports a Sun Cluster but for now all I wish to see is a "new" disk when I run format.
I am a little familiar with the telnet/ssh session on the 3510 but am... (2 Replies)
Discussion started by: malcqv
2 Replies
3. Shell Programming and Scripting
firstly, i check is the variable empty or not, if so
vesselNameList=`echo $vesselName`
if not
vesselNameList="${vesselNameList}""\n"`echo "$vesselName"`
and it produces this result
BUNGA TERATAI 3 5055\
JADE TRADER 143W\
MOL SPLENDOR 0307A
BUNGA TERATAI 3 5055\
JADE... (1 Reply)
Discussion started by: finalight
1 Replies
4. Shell Programming and Scripting
Hi ,
I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory.
how to write this in a simple script, I have made my code complex
if ; then
taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Discussion started by: ramky79
7 Replies
5. UNIX for Dummies Questions & Answers
I've been working with Solaris/Linux for about 4 months now. Let me explain the scenario. There will be two users involved. The owner (curOwner) and the new user (newUser). The server in question is a Solaris 10 box.
So curOwner runs an application that is constantly writing logs to lets say.... (2 Replies)
Discussion started by: amadont12
2 Replies
6. Shell Programming and Scripting
Hi,
I have a directory /home/datasets/ which contains a bunch (720) of subdirectories called hour_1/ hour_2/ etc..etc.. in each of these there is a single text file called (hour_1.txt in hour_1/ , hour_2.txt for hour_2/ etc..etc..) and i would like to do some text processing in them.
Each of... (20 Replies)
Discussion started by: amarn
20 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Very unfamiliar with unix/linux stuff. Our admin is on vacation so, need help very quickly.
I have directories (eg 40001, 40002, etc) that each have one subdirectory (01).
Each subdir 01 has multiple subdirs (001, 002, 003, etc). They are same in each dir.
I need to keep the top and... (7 Replies)
Discussion started by: kkouraus1
7 Replies
8. Shell Programming and Scripting
Hi All,
I have a list of words (these are actually a list of database table names separated by comma).
Now, I want to find only the non-existing list of words in the *.java files of current directory and/or its sub-directories.
Sample list of words:... (8 Replies)
Discussion started by: Bhanu Dhulipudi
8 Replies
9. Shell Programming and Scripting
How can I have an intelligent script that will copy from source to destination directory if the file doesnt exist there or the chksum is not match.
SOURCE directory:
for i in `ls`
> do
> echo $i
> md5sum $i
> echo ""
> done
asdasda
00039a616135792fb609d04cf27aed95 asdasda
... (5 Replies)
Discussion started by: kenshinhimura
5 Replies
10. Shell Programming and Scripting
Hi Experts
I need your help to optimize my script to execute better as I have nearly 1M records & the script is taking close to 40 minutes to execute, so would need support on a faster alternative.
Input: file
{"house":"1024","zip":"2345","city":"asd","country":"zzv"}... (2 Replies)
Discussion started by: nk1984
2 Replies
LEARN ABOUT DEBIAN
schroot-script-config
SCHROOT-SCRIPT-CONFIG(5) Debian sbuild SCHROOT-SCRIPT-CONFIG(5)
NAME
schroot-script-config - schroot chroot setup script configuration
DESCRIPTION
schroot uses scripts to set up and then clean up the chroot environment. These scripts may be customised using the script-config key in
/etc/schroot/schroot.conf. This key specifies a file which the setup scripts will source when they are run. The file is a Bourne shell
script, and in consequence may contain any valid shell code, in addition to simple variable assignments. This will, for example, allow be-
haviour to be customised according to the specific chroot type or name.
This file is deprecated, but is still used if present; it will be obsoleted and removed in a future release. All the settings in this file
are now settable using configuration keys in schroot.conf, as detailed below. Existing configuration should be modified to use these keys
in place of this file.
ENVIRONMENT
The environment is the same as for all setup scripts, described in schroot-setup(5).
VARIABLES
The following variables may be set to configure setup script behaviour. Note that new variables may be added in future releases. Third-
party extensions to schroot which add their own setup scripts may add additional variables which are not documented here; consult the
extension documentation for further details.
SETUP_COPYFILES
A file containing a list of files to copy into the chroot (one file per line). The file will have the same absolute location inside
the chroot. Note that this is settable using the setup.copyfiles key.
SETUP_FSTAB
The filesystem table file to be used to mount filesystems within the chroot. The format of this file is the same as for /etc/fstab,
documented in fstab(5). The only difference is that the mountpoint path fs_dir is relative to the chroot, rather than the root.
Note that this is settable using the setup.fstab key. Also note that mountpoints are canonicalised on the host, which will ensure
that absolute symlinks point inside the chroot, but complex paths containing multiple symlinks may be resolved incorrectly; it is
advised to not use nested symlinks as mountpoints.
SETUP_NSSDATABASES
A file listing the system databases to copy into the chroot. The default databases are 'passwd', 'shadow', 'group', 'services',
'protocols', 'networks', and 'hosts'. 'gshadow' is not yet copied by default, due to not being supported by all but the most recent
version of the GNU C library. The databases are copied using getent(1) so all database sources listed in /etc/nsswitch.conf will be
used for each database. Note that this is settable using the setup.nssdatabases key.
AUTHORS
Roger Leigh.
COPYRIGHT
Copyright (C) 2005-2012 Roger Leigh <rleigh@debian.org>
schroot is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option) any later version.
SEE ALSO
sbuild(1), schroot(1), sh(1), schroot.conf(5), schroot-setup(5).
Version 1.6.4 27 Oct 2012 SCHROOT-SCRIPT-CONFIG(5)