Relative Content

Tag Archive for shell

Which language is more suitable heavy file tasks?

I need to write a script (based on basic functions) to process /image/audio/video files. The process is mainly filesystem tasks and converts. The database of files has been stored by mysql. The script is simple but cause heavy tasks on the system; for example renaming/converting/copying thousands of file in a run. The script does not read the content of files into memory, it just manage the commands for sub-processes. The main weight is on the communication with filesystem. The script will be used regularly for new files. My concern is about performance. I am thinking of

Is it possible to use python as a shell replacement? [duplicate]

This question already has answers here: What’s shell script’s advantage over interpreted programming languages? [closed] (8 answers) Closed 11 years ago. Recently I was looking at python’s shutil and subprocess etc… And I started wondering: wouldn’t it be ok to use python instead of e.g. bash? What am I missing? python shell bash 2 Convenience […]