Hacker News new | ask | show | jobs
by blueblob 4473 days ago
While Python is likely more widely installed than Ruby, I still don't understand, why use Python to run a bunch of shell scripts? Why not use the shell to run the scripts?

    for f in scripts/*;do
      #logrotate here
      scripts/"$f" &> "logs/$f.log"
    done
or something like that?

EDIT: not trying to be rude, I just don't understand.

1 comments

Makes sense. Was thinking the same... Just doing this for learning actually. I think it makes sense tho to do it in Python, Ruby or something else, if you want to steamline it in some way with structure/architecture. I would like to see the bash version tho :-)