Hi!
Could anybody help me with a small script in execline. I'm a complete newbe.
It's supposed to run s6-log with arguments loaded from a file.
If there's no file it's falls back to default arguments.
So far I have something like that, but it always runs the default:
s6-log T s1000000 n10 /var/log/syslogd
#!/usr/bin/execlineb -P
if -nt
{
backtick -n S6_LOG_ARGS
{
redirfd -r 0 /opt/s6logargs.opts s6-cat
}
import -u S6_LOG_ARGS s6-log T $S6_LOG_ARGS
}
s6-log T s1000000 n10 /var/log/syslogd
Thanks!
Jan
Received on Wed Mar 02 2016 - 22:52:05 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:38:49 UTC