LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Running a Program in a new Virtual Terminal (https://www.linuxquestions.org/questions/linux-software-2/running-a-program-in-a-new-virtual-terminal-202870/)

Johnsernickle 07-08-2004 11:38 PM

Running a Program in a new Virtual Terminal
 
Hello, I'm setting up a computer to be a FTP server on my home network, I also use this computer for Folding at Home. What i usualy like to do is save my first virtual terminal for whatever im going to do, and i open virtual terminal two and three, log onto both, and i start a Folding at Home process on each (I have two processors). I like being able to switch over whenever and see their progress. I do this same thing every time, and i was trying to make a script that would automate the process. I was looking into the "openvt" command to open Folding at Home in the other consoles, but you have to log on to those consoles first! If you dont, you get the output, but its formatted incorectly and you cant exit it. (i was testing out openvt with the "top" command). If you log into the console before you use it, it works great. But if i have to log in, whats the point of having a script? If anyone has any idea on how to do this, idd greatly appriciate it. To make the script idd only have to put the commands in a file and make it executable right? Thanks alot,

Petes

gruntwerk 07-09-2004 02:33 AM

Run FAH at boot..
 
(RegularUser must be set to one of user who is present on this system):
Add to rc.local

su - RegularUser -c "cd /folding; ./FAH4Console-Linux.exe >/dev/null &"


To get a FAH client to run on multi cpu machine, You must install as many FAH clients to separate directories as there are processors in Your machine and You may need to configure Your clients to use different Machine IDs (look to "Configuring the client").

Note: Never copy FAH files between separate clients as the usual outcome is more often bad than good.

See : http://www.vendomar.ee/~ivo/FAHLinux.txt for more info like the above

to check the progress, just look at /home/username/fah_folder/unitinfo.txt

Johnsernickle 07-09-2004 11:50 AM

Thanks alot, but i already know how to run Folding at Home on my machine. I am just looking for a way to make a script to view the output of the clients on virtual terminal two and three when i start up. So i can use rc.local for a script that:

1) Logs into each virtual terminal for me
2) Starts folding at home in each terminal, so i can easily see its output.


Looks like i may be able to do something with this screen comand... that gets around the loging in problem im having...

Thanks,

Petes


All times are GMT -5. The time now is 10:10 PM.