Hi all... I have several scripts of varying types (shell script, expect script, awk script) that I would like to run within 1 script.. They also take a command line argument (which it is getting successfully). The problem is, the parent script is exiting after the first script it calls is... (2 Replies)
One of our servers runs Solaris 8 and does not have "ls -lh" as a valid command. I wrote the following script to make the ls output easier to read and emulate "ls -lh" functionality. The script works, but it is slow when executed on a directory that contains a large number of files. Can anyone make... (10 Replies)
Hey,
I have finally made a command that works and now has to run it on 200+ files to run it on.
How do I do that?
Just fyi and if it complicates anything my commandline is:
awk '{if ($1 ~ /1/) print $2}' file
(yup, is should print $2 if $1 is a certain value)
It doesn't work when I: ... (2 Replies)
Hi I am trying to write a shell script that is reading all the scripts in the current directory (currently 5) and is allowing me to run the scripts that is in the directory.
I want that this scripts asks te user to execute 1 of the listed scripts.
I have 4 sample scripts in the directory:... (8 Replies)
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)
Hello Everyone,
I want to know how can we make the variables of one script available for the other script?
for example i have three scripts variable_availability.sh,first.sh,second.sh and a file containing variables called common
----------------------------------
cat variable_availability.sh... (2 Replies)
Hi all,
How to:
Run a bash script, display on the screen and save all information in a file including error information.
For example:
I have a bash script called test.sh
now I want to run the test.sh and display the output on the screen and save the output including error info to a file.
... (1 Reply)
Hi,shell script is scheduled from maestro and we want mastero should not run shell script so can we edit the shell script so that it should run.ThanksPrakash (5 Replies)
Hello,
Is there any method thorugh which script can take argument if pass otherwise if argument doesn't pass then it takes the argument from the configuration file
i.e I am workiing on a script which will run through crontab and the script will
chekout the code ,zip and copy to the... (3 Replies)
I have this little bash script I use to transcode mkv files using handbrake.
#!/bin/bash
sourcedir="/media/raid10/video/to_be_encoded_series"
destdir="/media/raid10/video/series"
cd "$sourcedir"
for i in *.mkv; do
HandBrakeCLI -i "$i" -o "$destdir/${i%.*}.mkv" -e x264 -q 20.0 -E copy -B... (4 Replies)
Discussion started by: barrydocks
4 Replies
LEARN ABOUT FREEBSD
uhub
UHUB(1) General Commands Manual UHUB(1)NAME
uhub - a high performance ADC peer-to-peer hub
SYNOPSIS
uhub [options]
DESCRIPTION
uHub is a high performance peer-to-peer hub for the ADC network. Its low memory footprint allows it to handle several thousand users on
high-end servers, or a small private hub on embedded hardware.
OPTIONS -v Verbose mode, add more -v's for higher verbosity.
-q Quiet mode, if quiet mode is enabled no output or logs are made.
-f Fork uhub to background in order to run it as a daemon.
-l logfile
Log messages to the given logfile (default: stderr)
-L Log messages to syslog.
-c config
Specify configuration file (default: /etc/uhub/uhub.conf)
-C Check configuration files and return. Will print either
-s Show all configuration parameters. In a format that is compatible with the configuration files.
-S Show all non-default configuration parameters.
-h Show the help message.
-u user
Drop privileges and run as the given user.
-g group
Drop privileges and run with the given group permissions.
-V Show the version number
EXAMPLES
To run uhub as a daemon, and log to a file:
uhub -f -l /var/log/uhub/uhub.log
AUTHOR
This program was written by Jan Vidar Krey <janvidar@extatic.org>
BUG REPORTS
If you find a bug in uhub please report it to http://bugs.extatic.org/
March 2009 UHUB(1)