Hi frnds...
I m facing very irritating problem already waisted my 2 days..
I have a following script..( i am pasting only the main code)
ftp -ivn 213.194.40.77 <<FTP
user $user $password
binary
cd $FileDir/out
lcd $localpath
get $file
rename $FileDir/out/$file $FileDir/tmp/$file... (1 Reply)
Hello all,
I do not understand the meaning of some columns in the result of executing 'ls -l'. For example, i got the following result by run 'ls -l'
total 3531
-rw-r--r-- 1 root root 1351680 Oct 17 20:50 fileindex.rpm
-rw-r--r-- 1 root root 16384 Oct 17 20:50 groupindex.rpm ... (5 Replies)
Could any one tell me how to do get result in fraction in shell script.
I am using expr for division of 2 number but it is giving Quitent.
I need it in full fraction value.
please helpp. how to do it using "dc" or "bc" (5 Replies)
Hi,
I'm curious about the advantage of forking and executing a program in a user shell as opposed to forking and executing the program directly without the user shell.
For example:
why is it often like:
SSHD->fork&exec(shell, sftp-server)->fork&exec(sftp-server)
And Not like:
... (2 Replies)
Hi,
I am looking for a cgi-script which runs a shell script from a web page.
When I click "Run" from a web page it should run the shell commands in an
textarea and results should get back to web page.
Thanks
Venkat (5 Replies)
there is a directory /data/users/osa/psidp/dmp/files/cimdir ,it have some subdirectories ,and also the subdirectoriy have it's subdirectoriis.
I want to get all the leaf nodes of the directory path .
but the result of the script is wrong ,how can i get the right result
somebody who can help... (1 Reply)
Hi,
I am writing a script on Solaris 10 and want to execute a remote ssh command. Normally this command should just return the value 0000000000002356 but when using ssh it seems it is passing the result to the shell to execute.
ssh root@10.5.112.145 `/usr/bin/nawk -F\, '$1=="USG" && $2=="01"... (3 Replies)
Hello,
I'm running a perl script to execute a program through my Unix command line. The program requires a user input but I want to automatically have perl input the string. Is there a way to do this?
Thanks (1 Reply)
Hi,
I wrote the below script to get the query result from a Syabase DB.
isql -s -U **** -P **** SYBASE SERVERNAME
USE ***(Database name in Sybase)
@command.sql
But im not getting the output. Can anyone help me on this (2 Replies)
Hi Team,
Can you pls advise in java how can we call a shell script, actly I have a shell script at the following location
/opt/dd/ajh.sh
now I can execute this script by opening the session through putty by entering the servers details and password and then navigating to the following... (2 Replies)
Discussion started by: punpun777777
2 Replies
LEARN ABOUT REDHAT
amgetconf
AMGETCONF(8) System Manager's Manual AMGETCONF(8)NAME
amgetconf - look up amanda.conf variables
SYNOPSIS
amgetconf [ config ] parameter
DESCRIPTION
Amgetconf looks up parameters in amanda.conf, the Amanda configuration file, or from the build and runtime environment, and returns their
corresponding value.
If config is not specified, amgetconf assumes it is being run from the configuration directory and that amanda.conf is present.
If parameter begins with build., the (case insensitive) string following the period is a build environment variable. Variables without a
value (e.g. XFSDUMP on a system that does not support that type of file system) will not report an error and will return an empty string as
the value. Flag variables (e.g. USE_AMANDAHOSTS) will return 1 if the flag is set or an empty string if it is not.
If parameter begins with dbopen., the string following the period is a program name and an Amanda debug file will be created for the call-
er. The name of the file is returned.
If parameter begins with dbclose., the string following the period is a program name previously used with dbopen., followed by a colon (:)
and the previously opened file name.
See the amanda(8) man page for more details about Amanda.
EXAMPLE
Find out the path to the log file directory:
% amgetconf DailySet1 logdir
/etc/amanda/DailySet1
Find out the current tape type:
% amgetconf DailySet1 tapetype
DLT4000-IV
Find out the default configuration directory:
% amgetconf DailySet1 build.CONFIG_DIR
/etc/amanda
Create, use and close a debug file in a script:
% set debug_file = `amgetconf DailySet1 dbopen.myscript`
% echo debug information >> $debug_file
% amgetconf DailySet1 dbclose.myscript:$debug_file
MESSAGES
amgetconf: no such parameter "param"
Parameter param is not a known keyword (e.g. not a valid amanda.conf keyword). In this case, amgetconf will write "BUGGY" to stdout
as the value.
SEE ALSO amanda(8)AMGETCONF(8)