LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2004, 11:38 PM   #1
Johnsernickle
Member
 
Registered: Aug 2002
Posts: 71

Rep: Reputation: 15
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
 
Old 07-09-2004, 02:33 AM   #2
gruntwerk
Member
 
Registered: Dec 2003
Location: PA
Distribution: fc9
Posts: 89

Rep: Reputation: 15
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
 
Old 07-09-2004, 11:50 AM   #3
Johnsernickle
Member
 
Registered: Aug 2002
Posts: 71

Original Poster
Rep: Reputation: 15
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

Last edited by Johnsernickle; 07-09-2004 at 11:53 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about running a program from terminal window ganoo Linux - Newbie 7 11-01-2010 12:44 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
Virtual terminal Nawas111 Linux - Hardware 4 11-27-2004 05:02 PM
Only one virtual terminal? kule Slackware 7 07-14-2004 05:06 PM
Running program when terminal closed? mikeshn Linux - General 9 11-23-2002 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration