Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specific path lengths causes shortened command #106

Open
cpenn-usgs opened this issue Jun 13, 2024 · 3 comments
Open

specific path lengths causes shortened command #106

cpenn-usgs opened this issue Jun 13, 2024 · 3 comments

Comments

@cpenn-usgs
Copy link

When the rscript argument is 100 to 103 characters long, the command in Task Scheduler is chopped off. This can cause issues such as the ampersand being at the end of the command and prohibiting the task from running, or the log file name extension shortened to ".lo" where the "g" is left off.

@jwijffels
Copy link
Collaborator

I'm not sure if I can fix that
Isn't this governed by Windows?

@cpenn-usgs
Copy link
Author

When debug = TRUE the command printed to the console in R does not match the task action arguments in Task Scheduler. I'm not sure there is a fix, but adding a final check or mismatch warning could be useful. After the task is created a call to the schtasks /Query could check that the command passed to schtasks matches the returned query "Task To Run" column text.

@jwijffels
Copy link
Collaborator

Can you make a suggested pull request such that I understand how you would like to see it solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants