LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2005, 01:17 PM   #1
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Rep: Reputation: 15
How to run my cron command ?


Hi LQ,
I have a cron command to run everytime my pc is starting,
but it gives an error message "Error opening terminal: unknown."
What do i have to do ?
Regards,
Pierre
 
Old 05-26-2005, 01:38 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
How are you using cron to do this?

Can you tell us what the command is?
 
Old 05-26-2005, 01:43 PM   #3
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Original Poster
Rep: Reputation: 15
Sorry about this,

I am using webmin to do this. ( easier for a noob like me )
Command is /usr/bin/btlaunchmanycurses /myfolder/

When lauching the command manually, it is ok.
I just want the command to be started every startup, if possible.

Last edited by Tanc; 05-26-2005 at 01:45 PM.
 
Old 05-26-2005, 01:55 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Why are you using cron to do this if you only want it to run at boot?

If you are using a curses program it will need a terminal to run in.
 
Old 05-26-2005, 02:10 PM   #5
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Original Poster
Rep: Reputation: 15
I have no screen on this computer, that's why i want to run that script .

Probably a stupid question , but is it then possible to run a terminal then the above script at boot automatically ?
 
Old 05-28-2005, 09:10 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You could use screen if you have it installed.

At the end of /etc/rc.local try adding:
screen -dm
screen -X screen /usr/bin/btlaunchmanycurses /myfolder/

Then if you ever need to reconnect to the running proccess just run "screen -x".
 
Old 05-28-2005, 04:58 PM   #7
Tanc
Member
 
Registered: Sep 2003
Location: France
Distribution: Debian etch
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks David ! It works fine !
Cheers,
Pierre
 
  


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
info to run "cu" command from cron tcore Mandriva 5 12-27-2018 11:34 AM
How can I run the "cu" command under cron? tcore Linux - General 1 03-08-2005 07:45 AM
How to run the cu command by cron tcore Linux - General 0 03-07-2005 08:22 AM
trying to get cron to run naijaguy Linux - General 12 08-18-2004 05:32 PM
Cron job does not run brentos Linux - General 6 12-12-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 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