View Full Version : Need a terminal to display any errors.
strider5623 06-03-2008, 01:44 PM I need a terminal to start with EMC2 to display all start up commands and any error's that EMC2 might have. The old EMC was installed on this machine that I am running, and it had a konsol start with EMC, just not sure how to do it in Ubuntu. Any help would be appreciated. :)
cyclestart 06-03-2008, 07:38 PM I need a terminal to start with EMC2
Think you provided the answer. Terminal is in the menu Applications -> Accessories.
Konsole is the KDE (K desktop enviroment) equivalent, Ubuntu uses the Gnome desktop.
Hope that was the question.
strider5623 06-03-2008, 07:44 PM What I mean is that, when I launch EMC2, I would like a terminal to launch simultaneously to monitor the start up operation of EMC and to report any errors it finds. Maybe a tcl file that would tell a terminal to launch as EMC launch's and have the terminal monitor EMC.
cyclestart 06-03-2008, 09:05 PM LOL, I thought that question was a bit softball. Looking at an old emc (still installed) it's clear what you're asking.
Don't know the answer. Emc2 is a different animal.
acondit 06-03-2008, 11:13 PM What I mean is that, when I launch EMC2, I would like a terminal to launch simultaneously to monitor the start up operation of EMC and to report any errors it finds. Maybe a tcl file that would tell a terminal to launch as EMC launch's and have the terminal monitor EMC.
I have seen it suggested to open a terminal and launch EMC2 from the command line within the terminal.
Alan
strider5623 06-03-2008, 11:36 PM I have seen it suggested to open a terminal and launch EMC2 from the command line within the terminal.
Alan
I tried that, but unfortunately it only launched the program, but did not display anything further.
cyclestart 06-04-2008, 02:16 PM Have you tried reading the included manpage?
In a terminal;
man emc
There's -v for verbose and -d for debug. Maybe the info you want is then displayed?
acondit 06-04-2008, 04:57 PM I tried that, but unfortunately it only launched the program, but did not display anything further.
Strider,
This is old as the hills -- predates Linux and graphical interfaces, but starting EMC2 from a terminal window, you might try redirecting stderr > stdout. I don't even know if there are any error messages written to stderr, but it could be worth a try.
There are supposedly some error messages written to a system log file.
Alan
strider5623 06-04-2008, 08:04 PM Thank you both, I will give each a try tommorrow when I am back in the shop. Will post back the results.
strider5623 06-05-2008, 10:08 AM Have you tried reading the included manpage?
In a terminal;
man emc
There's -v for verbose and -d for debug. Maybe the info you want is then displayed?
Thank you very much. This worked like a charm. Now if I can only figure out how to get emc to do this when I launch the program form the launcher rather then the terminal. Any suggestions would be welcomed. Thanx again.:)
acondit 06-05-2008, 04:34 PM Thank you very much. This worked like a charm. Now if I can only figure out how to get emc to do this when I launch the program form the launcher rather then the terminal. Any suggestions would be welcomed. Thanx again.:)
How about right clicking on the desktop icon, going to properties and editing the command?
Alan
strider5623 06-05-2008, 06:57 PM That's a great idea. I should have thought of that. I have been so consumed with getting EMC2 configured to my liking, that the simplest solutions elude me sometimes. I also operate in multiple OS's so it is hard to remember those little short cuts all the time. I will give it a shot tomorrow when I am Back in the shop. Thanx.
cyclestart 06-05-2008, 09:53 PM Now if I can only figure out how to get emc to do this when I launch the program form the launcher rather then the terminal
A couple of thoughts.
If you want to use the applications menu;
In a terminal
sudo nano /usr/share/applications/emc2.desktop
if you want verbose edit these lines
Exec=/usr/bin/emc -v
Terminal=true
This will close the terminal window when emc exits.
If you want to use a desktop launcher;
Right click desktop to create.
For the command entry
/usr/bin/xterm -e "emc -v ; bash"
In this case the terminal returns to the prompt but stays open.
No guarantee against unintended side effects. My linux knowledge has reached the "monkey with a hand grenade" stage :)
note: some of the command whitespace was exaggerated for clarity. Assume any space = 1 space
strider5623 06-06-2008, 09:48 AM A couple of thoughts.
If you want to use the applications menu;
In a terminal
sudo nano /usr/share/applications/emc2.desktop
if you want verbose edit these lines
This will close the terminal window when emc exits.
If you want to use a desktop launcher;
Right click desktop to create.
For the command entry
/usr/bin/xterm -e "emc -v ; bash"
In this case the terminal returns to the prompt but stays open.
No guarantee against unintended side effects. My linux knowledge has reached the "monkey with a hand grenade" stage :)
note: some of the command whitespace was exaggerated for clarity. Assume any space = 1 space
Thank you cyclestart, and thanx to all others who helped. This worked exactly how I needed it to. Now I can focus on other more impotant things. Thanx again.:)
|