08-15-2002
9 More Discussions You Might Find Interesting
1. Solaris
I am the new admin of about 50 or so Solaris systems (both 8 & 9) that I need to change the root (&shadow) password to after the prior admin left.
Is there a tool that can be used or a script that you like to use that can be used to perform a global change to prevent having to login to each... (2 Replies)
Discussion started by: sconewb
2 Replies
2. Shell Programming and Scripting
I have a bit of javascript
function hasSpaces(name)
{
if(name.search(/^\s*/) != -1){
alert(name);
name.replace((/^\s*/, "~"))
alert(name);
}
return name;
} ... (2 Replies)
Discussion started by: insania
2 Replies
3. Shell Programming and Scripting
Hi
I am not if this is possible: is it possible in bach (or another shell) to redirect GLOBALLY the stdout/stderr channels to a file.
So, if I have a script
script.sh
cmd1
cmd2
cmd3
I want all stdout/stderr goes to a file. I know I can do:
./script.sh 1>file 2>&1
OR
... (2 Replies)
Discussion started by: islegmar
2 Replies
4. Shell Programming and Scripting
This should replace the 1st and the 3rd occurance of "the":
sed -e "s/ the / those /1;s/ the / these /3"
This works only by line.
If there is a second "the", but in an other line for example, it counts it as 1st again and replaces it again.
How can I replace "the" 1st and 3rd... (14 Replies)
Discussion started by: lowmaster
14 Replies
5. Shell Programming and Scripting
Hi
I've few shell scripts which are responsible for triggering the continuous builds for a specific module. Each shell script is for a Module. Shell script has some module specific settings in the beginning and then it triggers the builds (which are nothing but some combination of Java programs... (2 Replies)
Discussion started by: kgsrinivas
2 Replies
6. Shell Programming and Scripting
I am attempting to use a shell script to append the string "AAA" to the beginning of over 400 files and I am just missing that little piece to finish.
I am still a newbie and I am still learning scripting. This is what I have so far:
#!/usr/bin/ksh
find /home/vedder191/AAA_revised -type... (4 Replies)
Discussion started by: vedder191
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I'm trying to update the last two characters coming in a string globally in a file.
Here is the sample data:
file1
In file1, I want to have all instances replace where _o is appearing in the end of a word with _g. If _o is appearing in the middle or any other position except the... (2 Replies)
Discussion started by: er_ashu
2 Replies
8. UNIX for Advanced & Expert Users
Dear All,
I want to get all the IPs of the A RECORDS for mail.google.com.
The aim is to deny access to these IPs.
I learnt that mail.google.com has several IPs.
I did the following steps:
1. whois google.com
2. I got the following as its DOMAIN SERVERS:
3.# dig @ns1.google.com a... (1 Reply)
Discussion started by: coolatt
1 Replies
9. UNIX for Beginners Questions & Answers
Hi Gurus,
Is there a way to call a variable inside a function anywhere within the script?
Thanks.
BR,
Ernesto (2 Replies)
Discussion started by: ernesto
2 Replies
LEARN ABOUT XFREE86
mk-build-deps
MK-BUILD-DEPS(1) MK-BUILD-DEPS(1)
NAME
mk-build-deps - build a package satisfying a package's build-dependencies
SYNOPSIS
mk-build-deps --help|--version
mk-build-deps [options] control file | package name ...
DESCRIPTION
Given a package name and/or control file, mk-build-deps will use equivs to generate a binary package which may be installed to satisfy all
the build dependencies of the given package.
If --build-dep and/or --build-indep are given, then the resulting binary package(s) will depend solely on the
Build-Depends/Build-Depends-Indep dependencies, respectively.
OPTIONS
-i, --install
Install the generated packages and its build-dependencies.
-t, --tool
When installing the generated package use the specified tool. (default: apt-get --no-install-recommends)
-r, --remove
Remove the package file after installing it. Ignored if used without the --install switch.
-a foo, --arch foo
If the source package has architecture-specific build dependencies, produce a package for architecture foo, not for the system
architecture. (If the source package does not have architecture-specific build dependencies, the package produced is always for the
pseudo-architecture all.)
-B, --build-dep
Generate a package which only depends on the source package's Build-Depends dependencies.
-A, --build-indep
Generate a package which only depends on the source package's Build-Depends-Indep dependencies.
-h, --help
Show a summary of options.
-v, --version
Show version and copyright information.
-s, --root-cmd
Use the specified tool to gain root privileges before installing. Ignored if used without the --install switch.
AUTHOR
mk-build-deps is copyright by Vincent Fourmond and was modified for the devscripts package by Adam D. Barratt <adam@adam-barratt.org.uk>.
This program comes with ABSOLUTELY NO WARRANTY. You are free to redistribute this code under the terms of the GNU General Public License,
version 2 or later.
Debian Utilities 2013-12-23 MK-BUILD-DEPS(1)