Results 1 to 1 of 1
I hope to add a wrapper script for the command with different parameters
for example , for any Unix command or script ,like blow
command.sh -s p1 -o p2 -q ...
- 01-08-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 1
wrapper for command with different parameter
I hope to add a wrapper script for the command with different parameters
for example , for any Unix command or script ,like blow
command.sh -s p1 -o p2 -q p3
or
command.sh
Probably we could do as this way
cat wrapper
$1 $2 $3 $4 $5 $6 $7 | tee test.log
(assume it has 0 to 6 parameters)
and use it like
wrapper command.sh -s p1 -o p2 -q p3
wrapper command.sh
It is a little ugly to list all fixed parameter as above, do we have better code to handle various paramters ?
Thanks


Reply With Quote