On 13.12.19 11:19, Rowland penny via samba wrote:> On 13/12/2019 09:50, basti via samba wrote: >> Hello, >> >> i have a bit more complex login script. This script add common-shares, >> user shares, set some settings on firefox profile and so on. >> >> Sometimes it is working well, sometimes some shares are missing. is >> there a simple way to log all the events of the script to a logfile? >> >> like this in bash? >> >> # >> http://serverfault.com/questions/103501/how-can-i-fully-log-all-bash-scripts-actions >> >> >> exec 3>&1 4>&2 >> exec 1>>/root/logfile.log 2>&1 >> > This all depends on what the script is written in and where it runs. > > RowlandIt's old school bat / batch.
On 13/12/2019 10:29, basti via samba wrote:> > On 13.12.19 11:19, Rowland penny via samba wrote: >> On 13/12/2019 09:50, basti via samba wrote: >>> Hello, >>> >>> i have a bit more complex login script. This script add common-shares, >>> user shares, set some settings on firefox profile and so on. >>> >>> Sometimes it is working well, sometimes some shares are missing. is >>> there a simple way to log all the events of the script to a logfile? >>> >>> like this in bash? >>> >>> # >>> http://serverfault.com/questions/103501/how-can-i-fully-log-all-bash-scripts-actions >>> >>> >>> exec 3>&1 4>&2 >>> exec 1>>/root/logfile.log 2>&1 >>> >> This all depends on what the script is written in and where it runs. >> >> Rowland > It's old school bat / batch. >That is old school ;-) I haven't written a Windows batch script in years, so a quick google on 'log batch script' finds this: https://superuser.com/questions/698496/log-an-entire-batch-file-output Rowland
On 13.12.19 11:40, Rowland penny via samba wrote:> On 13/12/2019 10:29, basti via samba wrote: >> >> On 13.12.19 11:19, Rowland penny via samba wrote: >>> On 13/12/2019 09:50, basti via samba wrote: >>>> Hello, >>>> >>>> i have a bit more complex login script. This script add common-shares, >>>> user shares, set some settings on firefox profile and so on. >>>> >>>> Sometimes it is working well, sometimes some shares are missing. is >>>> there a simple way to log all the events of the script to a logfile? >>>> >>>> like this in bash? >>>> >>>> # >>>> http://serverfault.com/questions/103501/how-can-i-fully-log-all-bash-scripts-actions >>>> >>>> >>>> >>>> exec 3>&1 4>&2 >>>> exec 1>>/root/logfile.log 2>&1 >>>> >>> This all depends on what the script is written in and where it runs. >>> >>> Rowland >> It's old school bat / batch. >> > That is old school ;-) > > I haven't written a Windows batch script in years, so a quick google on > 'log batch script' finds this: > > https://superuser.com/questions/698496/log-an-entire-batch-file-output > > Rowland >Thanks a lot, I do no longer see the wood for the trees.