Run bash command in terminal using PDG
5238 6 1-
- Tyler Britton2
- Member
- 89 posts
- Joined: 4月 2014
- オフライン
-
- tpetrick
- スタッフ
- 616 posts
- Joined: 5月 2014
- オフライン
The Generic Generator node lets you run any executable that's on your PATH as a work item. If you want to actually use the shell itself, e.g. for piping between several executables, you'll need to run it with /bin/sh (or your shell of choice). For example, setting a Generic Generator's command field to /bin/sh -c “ls -la | grep *.txt”.
In you case though, you probably just want something like deadlineslave -nogui -name “somename”, which would work fine as long as the deadlineslave executable can be found on the PATH.
In you case though, you probably just want something like deadlineslave -nogui -name “somename”, which would work fine as long as the deadlineslave executable can be found on the PATH.
-
- Tyler Britton2
- Member
- 89 posts
- Joined: 4月 2014
- オフライン
-
- chrisgreb
- Member
- 603 posts
- Joined: 9月 2016
- オフライン
-
- Tyler Britton2
- Member
- 89 posts
- Joined: 4月 2014
- オフライン
-
- coclea
- Member
- 16 posts
- Joined: 7月 2012
- オフライン
and is there anyway to run windows commands (MS DOS) in a loop with the Generic Generator and the Generic range generator?
Claire
http://www.coclea.eu [coclea.eu]
http://www.coclea.eu [coclea.eu]
-
- tarhibniamul
- Member
- 7 posts
- Joined: 5月 2024
- オフライン
Tyler Britton2
I was wondering how I would run a linux terminal bash script using PDG. Something like the Unix sop node, but in TOPS. It is just a one line script (it is actually just “deadlineslave” to start a Deadline slave on my workstation).
Though I haven't utilized PDG, I can assist brainstorm! While there may not be a direct counterpart to the Unix sop node, try these methods:
Command Launch: PDG may feature a "command launch" capability to perform a shell command. You may execute your "deadlineslave" script directly. PDG manual explains how to do this.
Python Script: If PDG enables Python code, build a small Python script that calls os.system to execute your bash script. A more structured approach may give greater flexibility.
Let me know if you try either and how it goes! If not, a forum member may know PDG-specific information.
-
- Quick Links