3 ms·
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 t
by blueblob 13y 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.
- adionditsak 13y agoMakes 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 :-)