0

I want to run the following command:

#! /bin/bash 
proxychains myApp —arg

If I put this into a Bash script it would start proxychains and myApp, but they are not linked to eachother! Proxychains then times out and traffic from myApp isn’t passed through the proxy.

The syntax is: proxychains program [args]

Edit: Just to clarify this: If I just type the command in an active console, it works. Same command in a bash script doesn’t work.

2
  • The proxychains.conf is fine. If I put „proxychains myApp —arg“ in the console everything works as expected. It’s just the bash script that isn’t working because it isn’t linking proxychains and myApp. It’s like the bash script is opening proxychains and myApp as two separate programs.
    – Olaf
    Commented Jan 16, 2018 at 22:02
  • Just to clarify this: If I just type the command in an active console, it works. Same command in a bash script doesn’t work.
    – Olaf
    Commented Jan 17, 2018 at 7:57

2 Answers 2

0

Use the absolute path for both programs.

1
  • Doesn’t work either
    – Olaf
    Commented Jan 17, 2018 at 16:12
0

When I was running into the error I ran the script with sudo, because there were other parts in the script that depended on it. Strangely it works fine if I run the proxychains part without sudo... Guess I somehow messed up the user permissions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .