Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Pterm: (6 Items)
   
Pterm  
Hi,


Ca anyone help, I've created a button on my GUI interface and the button is linked to a shell script. I need for that 
when the button is clicked the terminal windows opens and display what the shell script is running.... I've link this to
 the button

pterm -Q /bin/script.sh

pterm opens but I get a "exec format error"

your help is highly appreciated


Thanks in advance

Sifiso Tshabalala
Re: Pterm  
Is your script starting with:

#!/bin/sh

line ?

PKY
Re: Pterm  
No it does not, but I've added the line !/bin/sh to the shell script and I get the same error message, I've also tried 
the following lines:

/bin/sh
/bin/ksh
and
#!/bin/sh from the response but this line will have no effect since it is hashed out or am I wrong?

help appreciated

Sifiso Tshabalala
Re: Pterm  
Problem solved,

Pterm can not accept a shell script as an argument rather a binary file, so I launch Pterm with the binary as the 
argument then the binary call the shell script



Thanks
RE: Pterm  
Sure it can!  I do it all the time.


-----Original Message-----
From: Sifiso Tshabalala [mailto:sifiso@dlm.co.za] 
Sent: 18 juillet 2008 09:12
To: qnx4-community
Subject: Re: Pterm

Problem solved,

Pterm can not accept a shell script as an argument rather a binary file, so
I launch Pterm with the binary as the argument then the binary call the
shell script



Thanks

_______________________________________________
QNX4 Community Support
http://community.qnx.com/sf/go/post10699

Re: RE: Pterm  
Tell me how, I'm learning.

Thanks