fork download
  1. #!/usr/bin/perl
  2. # your code goes here
  3. #$Id: sync-wcr-vaklist,v 1.2 2009/11/12 01:05:24 ezm Exp $
  4.  
  5. PATH="/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/sbin"; export PATH
  6.  
  7. out="/var/tellme/wcr-vaklist"
  8. tmp=$out.$$
  9. url="https://c...content-available-to-author-only...e.com/resources/list_wcr_enabled_vaks"
  10. ret=0
  11.  
  12. [ -f $tmp ] && rm $tmp
  13.  
  14. if wget --no-check-certificate -q -O $tmp $url; then
  15. if diff $tmp $out >/dev/null 2>&1; then
  16. :
  17. else
  18. mv $tmp $out
  19. ret=$?
  20. fi
  21. else
  22. echo "Can't retrieve $url"
  23. ret=1
  24. fi
  25.  
  26. [ -f $tmp ] && rm $tmp
  27.  
  28. exit $ret
Runtime error #stdin #stdout #stderr 0s 6000KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Semicolon seems to be missing at prog.pl line 7.
Semicolon seems to be missing at prog.pl line 8.
Semicolon seems to be missing at prog.pl line 9.
Bareword found where operator expected at prog.pl line 26, near "[ -f"
  (Might be a runaway multi-line -- string starting on line 14)
	(Missing operator before f?)
Can't modify constant item in scalar assignment at prog.pl line 5, near ""/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/sbin";"
syntax error at prog.pl line 8, near "tmp"
"no" not allowed in expression at prog.pl line 14, at end of line
Unmatched right square bracket at prog.pl line 26, at end of line
Execution of prog.pl aborted due to compilation errors.