I try to run wsusoffline as cronjob and have it set up like this in /etc/crontab
- Code: Select all
# wsusoffline.net Windows Updates Offline ISO-Images
# Windows 8 / Server 2012
00 23 * * 2 root test -x /srv/wsusoffline/sh/DownloadUpdates.sh && /bin/bash /srv/wsusoffline/sh/DownloadUpdates.sh w62-x64 deu /makeiso /dotnet /msse >/dev/null
As you can see I've added /bin/bash to the path to circumvent some TERM requirements and redirect output to /dev/null for silent updates of the iso images. But I'm still getting TERM warnings and overall output which is not expected.
- Code: Select all
TERM environment variable not set.
TERM environment variable not set.
TERM environment variable not set.
../client/wsus/wsusscn2_1.cab: WARNING; possible 16088 extra bytes at end of file.
TERM environment variable not set.
TERM environment variable not set.
TERM environment variable not set.
Warning: Creating ISO-9660:1999 (version 2) filesystem.
Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the OS.
0.21% done, estimate finish Wed May 22 10:54:42 2013
[...]
99.94% done, estimate finish Wed May 22 11:03:34 2013
Total translation table size: 0
Total rockridge attributes bytes: 73748
Total directory bytes: 178176
Path table size(bytes): 582
Max brk space used 8f000
2351374 extents written (4592 MB)
Is there any way to fix this? I don't want to run the script in a screen session merely to ignore output.