Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jan 2007
I need to edit a bash script from a PHP script
#!/bin/bash linphonecsh init sleep 6 linphonecsh register --host 10.1.10.250 --username 9999 --password abc1234 linphonecsh status register linphonecsh generic 'autoanswer enable' linphonecsh soundcard ring 0 linphonecsh soundcard playback 0 linphonecsh soundcard capture 2 linphonecsh generic 'codec enable 8'
I'd use PHP to put these values into variables and write them to a file. Then I'd modify the bash script to read the file and obey the variables.
I wouldn't have a web page update an executable script on my computer, that's just asking for trouble.Linux user #126863 - see http://linuxcounter.net/