Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Set rights for python scripts
  4. chmod +x irc.py
  5.  
  6. # It's necessary to quote each argument, because python does not support arguments starting with '#'
  7.  
  8. ARG=
  9. cnt=0
  10. for a in $@
  11. do
  12.     ARG[$cnt] = $(("'"+$a+"'"))
  13.     cnt = $(($cnt + 1))
  14. done
  15. python irc.py ARG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement