Search Results

Search: Posts Made By: secops
1,546
Posted By agama
Change your script: test="teststring" ...
Change your script:


test="teststring"
cmd=$1
eval $cmd


And invoke it with:

./test.sh "echo \$test"


This passes the string echo $test into the script (without expanding the...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy