New answers tagged

0

I don't think it is possible to export multiple values for the http_proxy or https_proxy environmental variables. I believe most applications that reference these variables assume they refer to just one designated proxy. That being said, one possible workaround is to script it. One approach that comes to mind is inspecting the IP address of the server's ...


1

You can do it like this ssh -t user@proxy_machine "ssh user@remote_machine" You need to use -t to allocate a pseudo-terminal or it will fail and complain about not having a terminal (varying message based on OS).


2

You're almost certainly better off with a shell script here. You could do it with a very, very ugly line like this: (note: not debuged/tested) mvn clean verify $( if [ ($(date +%H) -ge 0) && ($(date +%H) -le 6) ];then echo "-Dfindbugs.skip=false";fi;) The script would be a lot easier to look at anyway. It would look something like: if [ ($(date ...


0

What you're doing there is only changing the config. That much of it's correct, but then you need to apply those changes. For the case of VIPs, check what firewall_virtual_ip.php does when you apply changes. https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/firewall_virtual_ip.php#L48 Do that in your code after doing the write_config.


0

Any time files are replaced, CSF will think that it is suspicious. Files are normally updated daily on cPanel VPSs.


0

In bash 4.3 it seems you no longer need to use single quotes or set +H: $ bash --version GNU bash, version 4.3.46(1)-release (x86_64-unknown-linux-gnu) [...] $ echo "Reboot your instance!" Reboot your instance!


-3

you need to change the permissions: chmod +x test.sh


0

Fixed. The trouble is that $! is expanded too early. So escaping it delayed the expansion su - $USER -c "nohup java $rest_api_opts -jar $app_home/$app_name \ > /dev/null 2>&1& echo \$! > $PID"



Top 50 recent answers are included