All Questions
Tagged with syntax error-handling
3 questions
1
vote
2
answers
2k
views
Retry a maximum of 10 times scp command until it succeeds
I wish to retry scp 10 times and print an error message if it failed.
Below is my code:
#!/bin/bash
FILE=$1;
echo $FILE;
HOMEDIR="/home/ibro";
tries=0;
while (system "scp -P 3337 $FILE ...
0
votes
1
answer
953
views
How to run Ansible playbooks only if there are no problems in the playbook?
I have learned of the command ansible-playbook example.yml --check which can tell me if something in my playbook is problematic (as far as Ansible can recognize).
I think I should combine this ...
2
votes
2
answers
11k
views
Running R script via shell script. syntax error near unexpected token `('
I am currently trying to run an R script via a shell script.
Here the R script:
test = rnorm(1:100, 1000)
write.csv(test, 'test.csv')
And here the bash script which calls the R one:
#!/bin/bash -l
#...