LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-07-2014, 02:20 PM   #1
haunsdoger
LQ Newbie
 
Registered: Feb 2014
Posts: 7

Rep: Reputation: Disabled
Smile mate-terminal


Hi guys,
I'm sure this is a simple thing but have been working for a while to find an answer....

Linux Mint 17, mate

I have a shell script that runs each time the system is booted up. Of coarse there is no terminal window that shows me this is happening which is ok - dont want one but I do send a zenity --notification to let me know it worked.

I would like this script to present a terminal window so i can enter a smbpasswd command since I can not find a way to pass text into the smbpasswd command. I can do this IF I already have a terminal window up or running a script inside a terminal window.

The command I have in the start up script is
mate-terminal -e sudo smbpasswd -a client
but it fails to bring up a terminal window.
I would even just like a terminal window from this script if possible.

Does anyone know how to bring up a terminal window inside a non-interactive script?

Thanks in advance - Linux should be outlawed, its just to much fun!
 
Old 08-07-2014, 05:38 PM   #2
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
it really should be possible.
what happens (what output do you see, error messages...) when you execute that command from a terminal?
 
Old 08-07-2014, 05:52 PM   #3
haunsdoger
LQ Newbie
 
Registered: Feb 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi and thanks for your reply

I can execute mate-terminal in a terminal and it brings up another terminal - which is what
I want BUT when I use this command inside my start up script, it does not work. I get the
notification that the script was run (zenity --notification --text="Complete") is the command
right before mate-terminal. There is no output, and a terminal does not come up.

The start up script is executed from the ~/.configs/autostart directory and when it executes
at startup, there never is a terminal that is associated with it - it just executes the instructions.
I will capture the output and let you know if there is something but I believe not.

Thanks... George
 
Old 08-07-2014, 05:58 PM   #4
haunsdoger
LQ Newbie
 
Registered: Feb 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi Ondoho,
Well, it is now fixed... And I really don't know how unless I had a syntax error. But at any rate, you pointed me in the right direction (looking for output) from this script. I had given up. Thanks for your help - sorry it wasn't a big todo but it works great now.
 
Old 08-07-2014, 05:59 PM   #5
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
what happens (what output do you see, error messages...) when you execute that exact command from a terminal? the one you quoted?
 
Old 08-07-2014, 06:03 PM   #6
haunsdoger
LQ Newbie
 
Registered: Feb 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Well, the terminal window comes up without error. I beleive I could not see the error because there is no
window associated with the startup script. It doesn't present any window with error - I suppose it complains
but there is no way to show it. But when you pointed me to get an output ( I directed the error 2>file)
and rebooted. The terminal window came up as I wanted - so retyping the line (which I always do cause my fingers
seem to put in unseen charactures) and looking for errors fixed it - whatever it was. Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] anyone else having update problems with Mint15 Mate & 16 Cinnamon or mate RC 1sweetwater! Linux Mint 2 08-05-2014 07:42 PM
[SOLVED] Mate switched to cinnamon wthout permission mint-13-mate littlejoe5 Linux Mint 7 05-08-2014 11:54 PM
Mate 1.10 hpfeil Slackware 9 03-21-2014 02:06 PM
MATE is gone zkab Linux - Desktop 9 02-01-2014 07:36 AM


All times are GMT -5. The time now is 08:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration