LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 08-29-2008, 07:13 AM   #1
PlancksCnst
Member
 
Registered: Sep 2006
Posts: 34

Rep: Reputation: 15
Running command in gnome-terminal from script results in "...error creating child..."


In a script, I have
Code:
gnome-terminal -x /home/shawn/bin/podcatcher/copypodcsts.sh
I've also tried
Code:
gnome-terminal -c "/home/shawn/bin/podcatcher/copypodcsts.sh"
Either results in a dialog box with the following
Code:
"There was an error creating the child process for this terminal"
Any idea what this means or how I can fix it?

The script runs fine if I don't try to execute it in a terminal, but I'd like to see the output of the script. If someone has any other ideas for being able to see the stdout as the script is executing, that would be fine, too.

Last edited by PlancksCnst; 08-29-2008 at 07:17 AM.
 
Old 08-29-2008, 08:38 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Are you sure of the absolute path of the script? I get the same error if I try to execute a non-existent script (or if it has not executable permissions).
 
Old 08-29-2008, 09:21 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

Rep: Reputation: 64
if it is a bash script, you can run it in verbose mode and to show commands before it is executed:
Code:
bash -vx /home/shawn/bin/podcatcher/copypodcsts.sh
you can even redirect the output to inspect the details later.
Code:
bash -vx /home/shawn/bin/podcatcher/copypodcsts.sh > normal.output 2> error.output
 
1 members found this post helpful.
Old 08-31-2008, 01:25 PM   #4
PlancksCnst
Member
 
Registered: Sep 2006
Posts: 34

Original Poster
Rep: Reputation: 15
Wow, surprisingly, it was indeed the wrong path; I could have swore I tried executing the inner script (without gnome-terminal) and it worked - guess not.

Thanks for the help!
 
Old 04-07-2009, 06:13 PM   #5
metaylor
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Rep: Reputation: 0
Question

I have a similar problem. I have attempted to execute

gnome-terminal --window-with-profile=pass -x --execute echo "PASSED"

I also created a script named /ipdt/passmessage where passmessage is a script that contains

echo "PASSED"


Then I executed

gnome-terminal -x /ipdt/passmessage.sh

In both cases I get an error message "There was an error creating the child process for this terminal"

Any ideas?
 
Old 04-07-2009, 07:21 PM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
You sure the script has executable permissions?
 
Old 04-08-2009, 01:09 PM   #7
metaylor
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Rep: Reputation: 0
Yes. In fact, I have set full permissions
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
There was an error creating the child process for this terminal nvysel24 Linux - Software 4 03-09-2011 10:23 AM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
Error creating te child process for this terminal nevxille Linux - Newbie 3 10-17-2006 02:46 AM
Bash Script: Problem running variable command containing "" Paasan Programming 2 01-21-2004 02:45 AM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-22-2003 12:47 AM


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