Questions tagged [scripting]

A form of computer programming that — in the context of system administration — lends it self well to automating tasks.

A form of computer programming that — in the context of system administration — lends it self well to automating tasks.

Scripting is usually done in a scripting language. Such scripting languages are often dynamically typed and interpreted, as opposed to compiled languages. Examples of such languages include PowerShell, Perl and Bash.

1826 questions
0
votes
3 answers

Batch File Syntax to get files from FTP server

I have trouble getting all files from an FTP Server. Usually I get all files using the command line/terminal with syntax the following syntax: get a.txt (very, very time wasting with login authentication first) So, my expectation is I wanna get all…
Crist Tian
  • 1
  • 1
  • 1
0
votes
2 answers

What are the best practices to manage UPS in windows 2008 R2?

with win2k3 i used the ups service to monitor usb connected UPS and launch scripts when ups meets critical battery condition. The ups service is no more available in win2k8 and power management seems to be minimalist : in fact i can only choose to…
Loïc MICHEL
  • 236
  • 3
  • 11
0
votes
1 answer

bind shell program to user as root

I have an embedded system I have been developing. I would like to bind a program called HHPConfig, which I wrote and needs root permissions for setting network interfaces, rebooting etc..., to a user, admin, which can log in through telnet and…
Jonathan Henson
  • 979
  • 2
  • 10
  • 16
0
votes
1 answer

Nginx upstream based on remote_addr

Do you have any idea if there is any easier solution to pass the requests to different upstreams based on the visitor's ip address? The only solution that I found at the moment is: upstream live { ip_hash; server 10.0.0.1; } upstream test…
MihaiM
  • 728
  • 1
  • 9
  • 17
0
votes
1 answer

Moving spam from filter to mail server

I was wondering if its possible to take messages quarantined by a Spamassassin box and move it to the users spam folder residing on an email server. In my case I would want to move mail from an Untangle box to my Zimbra ZCS box. I was thinking some…
AtomicPorkchop
  • 1,975
  • 8
  • 34
  • 55
0
votes
3 answers

start-stop-daemon checking for existing running process

I'm starting a Python script that I've created using start-stop-daemon. It works perfectly in all cases, except when I've forgotten that I've already started it. It creates a new process, but is unable to kill the old processes…
0
votes
1 answer

Can I turn off Office Auto Save feature using ARD?

I have around 300 OSX desktops, and I'm not looking forward to having to walk around to each one to turn off MS autosave, can this be done using Apple Remote Desktop and a script?
Mister IT Guru
  • 1,178
  • 3
  • 15
  • 35
0
votes
2 answers

mkdir: cannot create directory `../abc/2011-11-23: No such file or directory

I have got a sftp script that downloads the archives , unzip it and then rename the files according to date and moves it to respective folder. I had to move the script from USB drive onto a separate server . After i moved whenever the script runs it…
San
  • 543
  • 4
  • 6
0
votes
1 answer

Query Exchange 2007 remotely for a user(s) mailbox size, and quota

Currently I'm using this powershell command on the server in the Exchange Management Shell: Get-MailboxStatistics username | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft…
MathewC
  • 6,957
  • 9
  • 39
  • 53
0
votes
1 answer

Postfix : Open relay to script

What I want to do with postfix is have an open relay that accepts all emails. I then want it to push all the received emails to a script. I have found solutions, but they never specifiy on how to do this for an open relay or how to accept all…
Lucas Kauffman
  • 16,880
  • 9
  • 58
  • 93
0
votes
3 answers

Using SSH to find access to a problematic script in logs of multiple domains

I run several (~20) sites on a Dreamhost VPS. Lately I max my memory allocation for the VPS and I want to find the problem. I would like to have an SSH script that will scan all the log files of all the domains and show me what object (image, php…
Hanan Cohen
  • 113
  • 3
0
votes
2 answers

Is the svn nightly commit script built to capture all possible scenarios?

I have a nightly svn commit script that should take into account all possible scenarios and commit new things to our svn repository. Basically I am running the following steps: svn status [path] to add any new files svn status [path] to delete any…
Geo
  • 3,071
  • 11
  • 42
  • 52
0
votes
1 answer

Scripted install of Debian backdoor/rootkit

We have a number of servers (100+) that we need to increase a certain type of security on. (sortof internal, sorry NDA). We have thought about using a rootkit of some sort that would be able to keep us access if the main root password has been…
Joshua D'Alton
  • 428
  • 3
  • 13
0
votes
2 answers

Need a bash script to replace static IP with a new IP address

I would like to have a bash script for Centos machine. I want the script to show me the current IP Address /subnet mask / Default GW. and give me option to enter a new IP Address /subnet Mask / Default GW. It should do it for ETH0. Can someone have…
edotan
  • 1,876
  • 13
  • 39
  • 57
0
votes
1 answer

How to execute the "while" statement after fetchmail do his job?

I have this script inside /etc/ppp/ip-up.d/script #!/bin/sh /usr/sbin/postqueue -c /etc/postfix -f /usr/bin/fetchmail -v -f /etc/fetchmailrc -L /var/log/fetchmail.log while ! postqueue -p | grep -q empty; do sleep 1 done killall wvdial in this…
nerdhacker
  • 61
  • 2
  • 5