Search Results

Search: Posts Made By: vininx
3,772
Posted By Corona688
What below script? You didn't post anything. ...
What below script? You didn't post anything.

Have you tried the one I posted?
3,772
Posted By methyl
The Shell way to test if you are in background: ...
The Shell way to test if you are in background:
if [ ! -t 1 ]
then
echo "In background"
fi
Script tests whether STDOUT is a terminal.


For question 2, please post your exact...
3,772
Posted By Corona688
Shell logins will have terminal devices, things...
Shell logins will have terminal devices, things created by cron and the like won't.

if /bin/stty -F /dev/tty >/dev/null 2>/dev/null
then
echo "Cannot run this program from a terminal"...
Showing results 1 to 3 of 3

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