Search Results

Search: Posts Made By: redtiger
18,424
Posted By redtiger
shell script to execute user command
I don't know why the following shell script doesn't work. Could you please help me out?

#!/usr/bin/ksh

test="cal > /tmp/tmp.txt 2>&1"
$test


I know it will work for the following format:
...
Showing results 1 to 1 of 1

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