D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Running programs that require a terminal - without one.

 

Hi everyone,
 
Is there anyway on linux of running programs require a terminal - without one?
 
I'm trying to run lame - from a system("command here") function in php, to resample mp3s, because I want my website users mp3s to be automatically resampled as they upload them.
 
The lame command works fine from the command line - but not from a standard system("command here") function even with absolute paths.
 
It does seems a bit daft to have program like lame doesn't have this ability.
 
Is there a command that goes something like:
 
pseudo_terminal [your command]
 
??
 
I've checked lame's documentation - and I can't see any flags that I can set to get around it.
 
From what I can gather PHP 5 does have the ability to emulate terminals via the proc_open() command. However I don't want to make my software PHP 5 dependant.
 
Any ideas??
 
Cheers
 
Jody


Try the all-new Yahoo! Mail . "The New Version is radically easier to use" ? The Wall Street Journal
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html