Hi..
Anyones help be greatly appreciated.
In following two scripts :
last | grep "$MONTH $DAY" > /tmp/$LOGFILE1 2>&1
and
ftp -n -i << EOF > /dev/null 2>&1
Where,
$MONTH, $DAY & $LOGFILE1 are defined variable.
Now what does "2>&1" does ?
please explain.
Regards.
Anyones help be greatly appreciated.
In following two scripts :
last | grep "$MONTH $DAY" > /tmp/$LOGFILE1 2>&1
and
ftp -n -i << EOF > /dev/null 2>&1
Where,
$MONTH, $DAY & $LOGFILE1 are defined variable.
Now what does "2>&1" does ?
please explain.
Regards.