[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
jody salt wrote:
> 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 was trying to run telnet from a script, which I guess is a similar
problem. I didn't end up using it because it was overkill for what I was
doing, but you might like to take a look at expect.
Hope this helps
Simon
--
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