How will I run the below code in the background while I sign off or forget about it till is done?

for file in *; do `ffmpeg -i $file -ab 192k -ar 44100 -acodec libmp3lame /home/afrispot/audios /converted/$file.mp3`; done

When you sign off, all user processes are terminate unless they were started with the nohup command. IE, you need to start the script with nohup. See the nohup man page for details on how to do this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.