-
Notifications
You must be signed in to change notification settings - Fork 12
Arguments break shell command on Mac #80
Comments
I have tried to repeat this using the following cut down job: https://github.com/snowplow/factotum/tree/osx-args-tree/int-test The results are identical on Linux/OSX: Linux: https://travis-ci.org/snowplow/factotum/jobs/168386920#L212-L216 What's different? What shell/version are you using? Edit: I know both builds list as "failed" but that's because I haven't set up the return codes properly, they haven't actually "failed" |
Wonder why |
I am pretty sure I've seen this in the wild too... Sorry I know that's very vague, but there's definitely something rare and intermittent in Factotum's handling of CLI args to tasks... |
I have created these scripts: #!/usr/bin/env ruby
puts ARGV.inspect #!/usr/bin/python
import sys
print str(sys.argv) and tried them both with this command:
both print the expected for me, using any shells I could find on my system: either: or: which is as I expect |
What's the exact error message @ihortom ? Can you paste it here please? There must be something I've missed |
|
Can you post the output of just the arguments the process is receiving? It's a bit hard to work out from that what's occurring - this python script will do the trick:
|
|
as discussed this is as expected, no clues as to why this doesn't work yet |
Running on Mac doesn't seem to work if options for the script are specified in "arguments". I had to put the whole command into one line in "command" property to make it work.
When run, the output suggests inappropriate use of the command. Having the option
--dry-run
added produces the command like below (with paths removed for brevity)"sh" "-c" "ssl_cert_check.sh \"-f\" \"ssldomain.txt\" \"-x\" \"60\""
In comparison, when the whole command is used in "command" property, the dry run produces
"sh" "-c" "ssl_cert_check.sh -f ssldomains.txt -x 60 "
I guess it might be something to do with the quotes.
The text was updated successfully, but these errors were encountered: