I have following small shell script.
value='testdir/imp'
`mkdir -m 755 $value`
echo $
the out put is
$ ./dir.sh
mkdir: Failed to make directory "testdir/imp"; Permission denied
2
Here i want to print this error message to a text file
How i can do this
In your case
should put you error message in the file log.file