• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to create and run a batch program

WolverineGator

Golden Member
I want to run a program called "runall" which does the following:

#!/bin/bash

python 'prog1.py'
python 'prog2.py'

The programs take a long time and need to run in sequence. I set the permissions to executable (-rwxrw-r--), but it won't run. I get: "-bash: runall: command not found"

How do I do it?
 
The current directory isn't in your PATH like it is in Windows. So either run it like esun says or put it in a directory that is in your path.
 
screen is a better option than nohup IMO, you can start programs under screen and know that they'll not get killed when you logout but you can also reattach to the screen session later on.
 
Back
Top