'sed' Command doesn't work with java script

I want to exectue following Shell Command with the Execute Option form Javascript:

"sed -i 4r<(sed '1,5!d' /etc/wpa_supplicant/wpa_template.template) /etc/wpa_supplicant/wpa_supplicant.conf"

Then i try this command in the shell console it works perfektly. But after starting it with the .js programm nothing is happen. I just want to copy the first 5 lines in template and add them to the config file.

62 thoughts on “'sed' Command doesn't work with java script”

Leave a Comment