Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

backup command "save $@"

Status
Not open for further replies.
Jul 3, 2002
9
US
On our systems the backups of SAP are started by scripts.
Networker client starts the script A. Script B starts then the brbackup command
Content of Script A:
"/oracle/SID/scripts/B $*"
/usr/sbin/nsr/save $@


Can anybody tell me, what exactly happens or what the sense of "save $@" or "$*" is?

Thanks in advance
 
According to the manpage, save can only be applied to a file or a directory. To my knowledge, it does not make sense unless it is possible to assign an environment variable "@". You may check this with the command "echo $@".
 
This sintax may be correct inside a script.
$@ means "all parameter sent into a shell script"; eg:

if we have a script named "thaoma" and this content is

echo $@

so you can execute the script running

./thaoma one two thre

and the result is

one two thre

The same is for $* in Windows environment.

See man sh/ksh/csh for more details.

Bye.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top