Hi there everyone. I’ve installed an utility for monitoring web traffic ,called WebScarab. I’ve set in firefox to use it as proxy server and now I have to start WebScarab before I can start the browser, which is ok, but now I would like to make a shortcut on my desktop, which would first start WebScarab and then firefox, to automate the process. I tried entering the command of the shortcut like this
Oh I think you’re problem is that it’s not running the commands asynchroniously, so it is waiting for the first one to finish. I guess I’m not too sure how to do it in one command, you probably need an & somewhere though and I don’t know how to fit it in one command.
Have you tried launching from a bash script? That’s generally my go to solution for launchers, I find they’re pretty simple and flexible (i.e. if you need to set environmental variables, or the starting directory, etc. you can). here maybe:
The ‘&&’ doesn’t work the way you expect it to. Try replacing the ‘&&’
with just ‘&’ and I think it will be a little better for you.
On 09/11/2010 07:06 AM, arcull wrote:
> Hi there everyone. I’ve installed an utility for monitoring web traffic
> ,called WebScarab. I’ve set in firefox to use it as proxy server and now
> I have to start WebScarab before I can start the browser, which is ok,
> but now I would like to make a shortcut on my desktop, which would first
> start WebScarab and then firefox, to automate the process. I tried
> entering the command of the shortcut like this
> java -jar “/home/arcull/WebScarab/webscarab.jar” && firefox %u
> but it doesn’t work, browser doesn’t start. Please help, thanks in
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
as malcolm81 suggested, and then run the script on the shortcut. The results are better, but still not perfect. The problem seems, that starting up WebScarab takes more time than starting up firefox, therefore firefox shows up first, saying it can not connect to proxy. So I guess I should include a few seconds of delay between both commands. So I tried like this
java -jar "/home/arcull/WebScarab/webscarab.jar" &
without the & after sleep. You want those run in succession, not asynchroniously (they are both starting at the same time in the original.)
Works ok, thanks Is there any switch available to run an app minimized? In my case, I would prefer webscarab starting minimized. Thanks again.