04-08-2008
Drop the -l from ls -l -- only the file name was requested.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi experts,
very need help about script how to login into oracle database and select a table and append the query into a file.
i have oracle database and have a table named omc_ip with fields like host_id(varchar2(20)),ip(varchar2(10)) and update_date(date).
i want to build a script that... (15 Replies)
Discussion started by: bucci
15 Replies
2. Shell Programming and Scripting
consider this is a line A#B#C#D#E#F#G#H
note the delimeter is #
i want to cut or spilt in to fields using the delimeter # and to store in an array.
like this
array=A
array=B
array=C
array=D
array=E
and the array content should be displayed.
echo "${array}"
echo "${array}"... (5 Replies)
Discussion started by: barani75
5 Replies
3. Shell Programming and Scripting
Hi,
I am trying to do the following thing
var='date'
$var
Above command substitutes date for and in turn runs the date command and i am getting the todays date value.
I am trying to do the same thing as following, but facing some problems,
unique_host_pro="sed -e ' /#/d'... (3 Replies)
Discussion started by: gvinayagam
3 Replies
4. Shell Programming and Scripting
How to store the content from array to either "row-column" or "column-row" order? (0 Replies)
Discussion started by: kavi.mogu
0 Replies
5. Shell Programming and Scripting
Hi i am a newbie, and have trying something that looked easy at first sight.
in this script i want to delete all the files and directories in subdirectory1 (but not delete subdirectory1) and dont show any stderr or stdout messages:
i try this but the stderr and stdout is shown...and it says... (2 Replies)
Discussion started by: bash100
2 Replies
6. Shell Programming and Scripting
I want to write a unix shellScript should store the csv files. into a paticular folder (2 Replies)
Discussion started by: RaghavendraT
2 Replies
7. Shell Programming and Scripting
Why does not work a cd in a shell schript file.
How do you get to run it?
I use these code:
#!/bin/sh
cd workspace
array=($(ls -d */))
echo ${array}
But it doesn't change to workspace
editby bakunin: please user CODE-tags as required by the rules. Thank you. (12 Replies)
Discussion started by: Linuxmann
12 Replies
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)