Tag Info

New answers tagged

0

Sure! You can even use [DateTime]::Now to specify -endTime. Limitation about 5 minutes is about overall time of being in maintenance mode, so if your object was in maintenance mode more than 5 minutes you can stop MM at any moment. Good luck, Roman.


0

Use a different set of variables for copy and other for ICACLS. Robocopy was not MS since a couple of years ago and ICACLS uses different variables- you just need a different if. You could also use power shell to wrap ICACLS variables which makes everything a bit easier http://tomandersonpro.net/ntfs-permissions-with-powershell/ .


0

Why don't you use sshpass ? Loop with a table: tab=( 1.2.3.4 4.3.2.1 ... ); for (( i = 1; i < ${#tab[*]}; i++ )) { echo ${tab[i]}; ... } You'll need some conditions for specific IP addresses to set the right password. SCP sshpass -p $PASSWORD scp -o StrictHostKeyChecking=no $FILE $USER@$HOST:$PATH According to ...


0

I realised my question did not go into detail about the .msp file. Originally my .msp file had the installation to be in a basic view. Basically, this stopped the installation from completing so no message would appear as the setup.exe process was still running. So to confirm, I set the installation view to 'none' in the msp file, and my message commands ...


0

If you have to manage hundreds of linux servers you should use a configuration management tool in order to execute these tasks. A very simple configuration management tool is ansible, the only requirement for managed system is python 2.4 or more( http://docs.ansible.com/intro_installation.html#managed-node-requirements ). Your problem solved with ansible: ...


1

Correct way is to edit a file called checkcommands.cfg, (create file if not available) located in the /etc folder within nagios folder. Create your command with variables & point to actual script. Example: define command { command_name check_http command_line /usr/local/nagios/libexec/check_http $ARG1$ } Also make sure you ...


1

Look at the ssh manual, more specificaly the -t option. If this doesn't work, try the -tt option. Also, I think your get-traffic.sh script should exit 0 at the end.


2

Postfix doesn't support script hooking upon delivery. In order to workaround this you can setup a crontab to execute the a special script. This script will: Setting up SSH tunnel Flush queue. First, define sender_dependent_relayhost_maps with the right-side value is your tunnel port (for example port 2525). #/etc/main.cf sender_dependent_relayhost_maps ...



Top 50 recent answers are included