In inittab, I have an entry that looks like this:scpt:234:once:RSYNC_OPTIONS=-q /path/to/script/script.sh arg1 arg2 arg3 2>&1However, it fails because it's actually attempting to execute RSYNC_OPTIONS=-q. I've also tried:scpt:234:once:export RSYNC_OPTIONS=-q;/path/to/script/script.sh arg1 arg2 arg3 2>&1but that fails too. Is there a way to do this or do I have to modify the script?
In inittab, trying to set environment variable before executing script
linux;init