New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Help with BASH script
Hey guys! first at all sorry for my bad english
I'm trying to make a BASH script to open Chrome/Chromium from terminal, this is my script:
#!/bin/bash while read proxy ; do /opt/google/chrome/chrome --proxy-server=\"$proxy\"; sleep 15 pkill chrome sleep 1 done< proxy.txt
It read a proxy list from a txt file (ip:port) and put it as parameter, then, open the browser every 15sec with a new proxy ip.
do you know a way to make it work?
Thank you!
Comments
Doesn't wget or curl support http proxies?
What doesn't work? Where does it fail?
[vanga mode]chrome does not release the console and script thinks that chrome is not finished yet? Chrome cannot be launched without X?[/vanga mode]
@breton how do you know about vanga?
I'm using JWM..
Well, Chrome open every 15sec but don't take the --proxy-server"ip:port" parameter.. if i put an echo before the "/opt/google/chrome/chrome --proxy-server=\"$proxy\";" it show it perfectly on the terminal..
if i put manually /opt/google/chrome/chrome --proxy-server=\"$proxy\"; in the terminal it work perfectly.