Hi,
Could you help me to find out what is wrong in my script?
#!/bin/ksh
exec 3 >> log
{
print start
print -u2 error
print -u3 "only to logfile"
print end
} 2>&1 |tee log
I get on my terminal and in the log file the same:
start
error
end
But I expect to get in the log file:
start
error
only to logfile
end
Thanks in advance,
Vadim
Could you help me to find out what is wrong in my script?
#!/bin/ksh
exec 3 >> log
{
print start
print -u2 error
print -u3 "only to logfile"
print end
} 2>&1 |tee log
I get on my terminal and in the log file the same:
start
error
end
But I expect to get in the log file:
start
error
only to logfile
end
Thanks in advance,
Vadim