I have a script that, when run in a terminal window, behaves itself. When I try and run it from the user scripts plugin it seems to fail and show some output that doesn't appear when run from a terminal window. Just to add to my confusion I can run the script in a terminal window for the docker in question and it works perfectly.
Here's an example of the output I get from the user scripts plugin...
script location: /tmp/user.scripts/tmpScripts/Get guide/script
Note that closing this window will abort the execution of this script
the input device is not a TTY
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '//.wget-hsts'. HSTS will be disabled.
--2019-05-27 11:58:51-- http://xxxxx.xxxxx.xx/xmltv.php?username=xxxxxxxx&password=xxxxxxxx
Resolving xxxxx.xxxxx.xx (xxxxx.xxxxx.xx)... 12.34.13.12
Connecting to xxxxx.xxxxx.xx (xxxxx.xxxxx.xx)|12.34.13.12|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://xxxxx.xxxxx.xx/xmltv.php?username=xxxxxxxx&password=xxxxxxxx [following]
--2019-05-27 11:58:51-- http://xxxxx.xxxxx.xx/xmltv.php?username=xxxxxxxx&password=xxxxxxxx
Resolving (xxxxx.xxxx.xxx)... 123.456.789.123
Connecting to xxxxx.xxxx.xxx (xxxxx.xxxx.xxx)|123.456.789.123|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/xml]
Saving to: '/usr/bin/epg.xml'
0K .......... .......... .......... .......... .......... 155K
50K .......... .......... .......... .......... .......... 328K
100K .......... .......... .......... .......... .......... 3.74M
150K .......... .......... .......... .......... .......... 27.8M
200K .......... .......... .......... .......... .......... 305K
250K .......... .......... .......... .......... .......... 35.7M
300K .......... .......... .......... .......... .......... 37.7M
350K .......... .......... .......... .......... .......... 37.5M
400K .......... .......... .......... .......... .......... 357K
450K .......... .......... .......... .......... .......... 4.05M
500K .......... .......... .......... .......... .......... 6.57M
550K .......... .......... .......... .......... .......... 38.8M
600K .......... .......... .......... .......... .......... 40.8M
650K .......... .......... .......... .......... .......... 40.8M
700K .......... .......... .......... .......... .......... 11.9M
750K .......... .......... .......... .......... .......... 32.2M
800K .......... .......... .......... .......... .......... 40.7M
850K .......... .......... .......... .......... .......... 390K
900K .......... .......... .......... .......... .......... 8.13M
950K .......... .......... .......... .......... .......... 10.5M
1000K .......... .......... .......... .......... .......... 4.33M
1050K .......... .......... .......... .......... .......... 28.2M
1100K .......... .......... .......... .......... .......... 8.48M
1150K .......... .......... .......... .......... .......... 24.1M
1200K .......... .......... .......... .......... .......... 36.2M
1250K .......... .......... .......... .......... .......... 39.8M
1300K .......... .......... .......... .......... .......... 37.4M
1350K .......... .......... .......... .......... .......... 39.3M
1400K .......... .......... .......... .......... .......... 39.7M
1450K .......... .......... .......... .......... .......... 36.8M
1500K .......... .......... .......... .......... .......... 38.4M
1550K .......... .......... .......... .......... .......... 38.1M
1600K .......... .......... .......... .......... .......... 40.1M
1650K .......... .......... .......... .......... .......... 44.4M
1700K .......... .......... .......... .......... .......... 42.6M
1750K .......... .......... .......... .......... .......... 458K
1800K .......... .......... .......... .......... .......... 3.11M
1850K .......... .......... .......... .......... .......... 37.2M
1900K .......... .......... .......... .......... .......... 43.7M
1950K .......... .......... .......... .......... .......... 24.7M
2000K .......... .......... .......... .......... .......... 6.73M
2050K .......... .......... .......... .......... .......... 9.95M
2100K .......... .......... .......... .......... .......... 38.7M
2150K .......... .......... .......... .......... .......... 37.1M
2200K .......... .......... .......... .......... .......... 45.6M
2250K .......... .......... .......... .......... .......... 38.6M
2300K .......... .......... .......... .......... .......... 23.4M
2350K .......... .......... .......... .......... .......... 37.3M
2400K .......... .......... .......... .......... .......... 12.7M
2450K .......... .......... .......... .......... .......... 41.1M
2500K .......... .......... .......... .......... .......... 41.0M
2550K .......... .......... .......... .......... .......... 37.9M
2600K .......... .......... .......... .......... .......... 38.3M
2650K .......... .......... .......... .......... .......... 39.8M
2700K .......... .......... .......... .......... .......... 37.3M
2750K .......... .......... .......... .......... .......... 37.8M
2800K .......... .......... .......... .......... .......... 39.0M
2850K .......... .......... .......... .......... .......... 35.7M
2900K .......... .......... .......... .......... .......... 31.9M
2950K .......... .......... .......... .......... .......... 48.0M
3000K .......... .......... .......... .......... .......... 36.4M
3050K .......... .......... .......... .......... .......... 38.6M
3100K .......... .......... .......... .......... .......... 55.0M
3150K .......... .......... .......... .......... .......... 37.7M
3200K .......... .......... .......... .......... .......... 42.2M
3250K .......... .......... .......... .......... .......... 32.2M
3300K .......... .......... .......... .......... .......... 32.2M
3350K .......... .......... .......... .......... .......... 29.7M
3400K .......... .......... .......... .......... .......... 263K
3450K .......... .......... .......... .......... .......... 292M
3500K .......... .......... .......... .......... .......... 362M
3550K .......... .......... .......... .......... .......... 167M
3600K .......... .......... .......... .......... .......... 223M
3650K .......... .......... .......... .......... .......... 421M
3700K .......... .......... .......... .......... .......... 350M
3750K .......... .......... .......... .......... .......... 385M
3800K .......... .......... .......... .......... .......... 336M
3850K .......... .......... .......... .......... .......... 361M
3900K .......... .......... .......... .......... .......... 430M
3950K .......... .......... .......... .......... .......... 383M
4000K .......... .......... .......... .......... .......... 322M
4050K .......... .......... .......... .......... .......... 422M
4100K .......... .......... .......... .......... .......... 357M
4150K .......... .......... .......... .......... .......... 413M
4200K .......... .......... .......... .......... .......... 340M
4250K .......... .......... .......... .......... .......... 271M
4300K .......... .......... .......... .......... .......... 415M
4350K .......... .......... .......... .......... .......... 408M
4400K .......... .......... .......... .......... .......... 393M
4450K .......... .......... .......... .......... .......... 480M
4500K .......... .......... .......... .......... .......... 397M
4550K .......... .......... .......... .......... .......... 500M
4600K .......... .......... .......... .......... .......... 400M
4650K .......... .......... .......... .......... .......... 317M
4700K .......... .......... .......... .......... .......... 470M
4750K .......... .......... .......... .......... .......... 467M
4800K .......... .......... .......... .......... .......... 400M
4850K .......... .......... .......... .......... .......... 394M
4900K .......... .......... .......... .......... .......... 318M
4950K .......... .......... .......... .......... .......... 494M
5000K .......... .......... .......... .......... .......... 334M
5050K .......... .......... .......... .......... .......... 416M
5100K .......... .......... .......... .......... .......... 422K
5150K .......... .......... .......... .......... .......... 292M
5200K .......... .......... .......... .......... .......... 405M
5250K .......... .......... .......... .......... .......... 11.0M
5300K .......... .......... .......... .......... .......... 181M
5350K .......... .......... .......... .......... .......... 331M
5400K .......... .......... .......... .......... .......... 9.42M
5450K .......... .......... .......... .......... .......... 308M
5500K .......... .......... .......... .......... .......... 308M
5550K .......... .......... .......... .......... .......... 338M
5600K .......... .......... .......... .......... .......... 402M
5650K .......... .......... .......... .......... .......... 302M
5700K .......... .......... .......... .......... .......... 9.55M
5750K .......... .......... .......... .......... .......... 357M
5800K .......... .......... .......... .......... .......... 10.5M
5850K .......... .......... .......... .......... .......... 178M
5900K .......... .......... .......... .......... .......... 293M
5950K .......... .......... .......... .......... .......... 322M
6000K .......... .......... .......... .......... .......... 302M
6050K .......... .......... .......... .......... .......... 230M
6100K .......... .......... .......... .......... .......... 10.5M
6150K .......... .......... .......... .......... .......... 274M
6200K .......... .......... .......... .......... .......... 321M
6250K .......... .......... .......... .......... .......... 10.2M
6300K .......... .......... .......... .......... .......... 367M
6350K .......... .......... .......... .......... .......... 371M
6400K .......... .......... .......... .......... .......... 301M
6450K .......... .......... .......... .......... .......... 301M
6500K .......... .......... .......... .......... .......... 383M
6550K .......... .......... .......... .......... .......... 10.5M
6600K .......... .......... .......... .......... .......... 479M
6650K .......... .......... .......... .......... .......... 361M
6700K .......... .......... .......... .......... .......... 436M
6750K .......... .......... .......... .......... .......... 372M
6800K .......... .......... .......... .......... .......... 395M
6850K .......... .......... .......... .......... .......... 297M
6900K .......... .......... .......... .......... .......... 260M
6950K .......... .......... .......... .......... .......... 361M
7000K .......... .......... .......... .......... .......... 299M
7050K .......... .......... .......... .......... .......... 317M
7100K .......... .......... .......... .......... .......... 441M
7150K .......... .......... .......... .......... .......... 496M
7200K .......... .......... .......... .......... .......... 457M
7250K .......... .......... .......... .......... .......... 322M
7300K .......... .......... .......... .......... .......... 452M
7350K .......... .......... .......... .......... .......... 497M
7400K .......... .. 378M=1.5s
2019-05-27 11:58:53 (4.73 MB/s) - '/usr/bin/epg.xml' saved [7590637]
So when I run the exact same script from a terminal window I see none of the TTY and HSTS messages ...and it appears to run perfectly....what am I missing?
Thanks for looking!