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

learn more… | top users | synonyms (2)

2
votes
2answers
55 views

Discrepancy in ssh-agent behavior

It seems like i'm having a bit of a discrepancy between the behavior of ssh-agent for two accounts I have configured. I wrote a simple monitoring script to check on the availability of some VMs we ...
0
votes
3answers
24 views

Measuring Program execution time

I would like to call a program from a script, (malwarebytes, chkdsk, A/V scan) and have the script keep track of how long the program ran. Could someone point me in the direction of what I should be ...
-3
votes
0answers
28 views

Script to run on a linux machine (enigma2) to do a login on a web page [closed]

As a newbbie I have a satelite box running linux (enigma2) and I would like to do a script that automatically on every 1 day of each month at 00:00 will "enter" on that website mentioned 00 00 1 * ...
0
votes
2answers
43 views

how to get the full path of a of an open file

I have script that runs on a Windows server to perform operations on certain files. The script often fails because various users (even myself) have open file shares on the server that they've ...
-1
votes
0answers
22 views

Extract data information from proxy squid log [closed]

I need to extract data information from proxy squid logs. I've check out some online scripts to extract data from squid, but first I would like to check with some of your experience if this ...
2
votes
1answer
14 views

Remove DVD drive from device manager - command line

Is there a way through command line to uninstall the entry under DVD/CD-ROM drives in device manager? Somehow someone applied a GPO on our top level domain and it's affected a number of things, I've ...
-1
votes
0answers
29 views

automatically turn off windows server when no more users are loggen in

I'd like to set-up an automatic turn-off action for our windows server 2008 r2 machine for example: turn off the machine 5 minutes after the logoff event, when no more users are logged in some ...
0
votes
3answers
23 views

How can I suppress the “…this does not map back…” message when using SSH?

I am writing a script that attaches to several of our machines via SSH to check some usage stats. Each time I do: ssh -i ~/.ssh/ourkeyfile.pem user@host I get the typical message: Address ...
0
votes
4answers
124 views

Script runs on 50 servers. How can I ensure only one executes a particular step?

I have some work that needs to be done on 50+ servers. The first step is to checkout an updated version of some source code onto a shared directory (assume all have the shared drive mounted). The ...
0
votes
1answer
34 views

Close a SSH Session when it suspend

I start a ssh session on a remote host and execute a script on the remote host. The Script is an update script that change the remote IP. Now my local bash script hanging on the line with this ...
1
vote
0answers
85 views

Powershell Script Hard drive Inventory

I've created a script to get hard drive information from our servers. The script use WMI to query the Win32_LogicalDisk class and returns "Size (GB)", "Free Space (GB)" and "Free Space (%)" for each ...
20
votes
6answers
1k views

Why use Chef/Puppet over shell scripts?

New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along. I would agree they are more readable. ...
1
vote
1answer
32 views

How to not run /etc/profile.d/custom.sh during Secure FTP login

When I attempt to Secure FTP (using WinSCP) to my CentOS 6.4 box I'm prompted with a message that states: Received too large (168438314 B) SFTP packet. Max supported packet size is 1024000 B. This ...
0
votes
0answers
31 views

Batch script terminates too soon

I need some help with Windows batch/CMD scripting. I wrote a script to record mic-in to a MP3 for 12 hours. It runs ok when running it manually. It will run with task scheduler too - just that, ...
-2
votes
0answers
30 views

Scripting to domain allocation to server [closed]

i am having two text files domain.txt as cocacola.com airtel.com pepsi.com servers.txt 192.0.53.42 , 4 # 4 domains already allocated on server 192.0.53.42 192.53.1.2 , 1 # 1 domains ...
0
votes
2answers
72 views

Putting this command into bash script

with help of google , script that measures multicast streams bandwidth. Here it is tcpdump -tnn -i eth1 -f multicast | sort | uniq -c | awk '{print $3,"> "$5,$1*$NF/2*8/1024 " Kbps"}' | awk '$1 ...
4
votes
1answer
75 views

How to get Mailbox Folder Permissions with SamAccountName or UPN?

I need to collect and store the folder permissions for each folder in each mailbox of our Exchange system. I'm already aware of the Cmdlet Get-MailboxFolderPermission but it has a serious problem. ...
0
votes
1answer
52 views

How to write a script to install multiple things by just executing it

I have a server (centOS) on which I would like to install the staple development tools. Java, Tomcat, and MySql. What is a good way to write a script that can be ran on newly spawned server so that ...
0
votes
1answer
72 views

> /dev/tty - What is the purpose of this command?

This is in one of the rc scripts in Red Hat and I want to understand the purpose of > /dev/tty[n] last=0 for i in `LC_ALL=C grep '^[0-9].*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* ...
-3
votes
0answers
35 views

Batch Script to Check and Pull warranty status from Lenovo [closed]

I have a list of serials I'm required to check with Lenovo to see what ones are still in warranty and dis guard the ones that are no longer in warranty this is time consuming doing it one by one and ...
-1
votes
1answer
30 views

Can not seem to get expr substr to work

Can anyone tell me what I am doing wrong ? [ /jlr/sub/libexec/vmr-staging ] $ expr substr "onetwothree" 1 4 expr: syntax error I got the syntax from http://stackoverflow.com/a/220464/1150847
0
votes
1answer
45 views

If I ssh to a remote computer and run a script, do I need to keep my connection for the script to finish executing?

I apologize if this question has been asked before, I wasn't able to find anything with my exact query. I have a rather lengthy script that needs to be run on a remote computer, and it takes about 3 ...
2
votes
1answer
23 views

Rolling Oncall Distribution List with Microsoft Exchange

I'm trying to set up an "oncall" user/email for Microsoft Exchange (ex: oncall@mybiz.org), with the idea being that whoever on my team is currently "oncall" will be added to the list. Then, when they ...
1
vote
2answers
71 views

Scripts or tools to parse email message to remove attachment of particular name

I have configured Redmine email integration and while it's awesome, a major annoyance is that people have signatures that include a company logo, which then gets posted to every ticket they update via ...
0
votes
1answer
41 views

Recursively delete empty folders with verbose output

This should be fairly simple, but I am not sure what i'm missing. I'd like to recursively delete empty directories, and get an output for what's being deleted, this command works for sure, but I just ...
0
votes
2answers
33 views

Debian webserver - Crontab error (not running php script)

I've a webserver with several sites and I'm trying to run a script by crontab but it gives me a error (126 and 127) My script is in: /var/www/site1/script.php When I run the command: php ...
0
votes
1answer
56 views

Is it possible to change BIOS settings from Linux?

I'm trying to write a script to enable IPMI on a ton of machines without having to hook up a KVM to them one by one. Is it possible to change the BIOS settings from Linux? OS is SL6. I understand ...
0
votes
2answers
45 views

How do I set the Red Hat hostname at boot via a script?

In our computing environment we have a number of virtual machines running Red Hat Enterprise Liunx 6 that need to set their hostname programmaticly when they boot for the first time. Currently they ...
0
votes
2answers
29 views

get informations from x servers per ssh by bash script

I've server Master,SlaveA,SlaveB,SlaveC, and want to get eg. the space information from the server by executing one bash script on the master. How can I do that? --case-- 192.168.1.1 - Master ...
0
votes
0answers
28 views

openvpn up script execute command in schroot

We would like to control a service in a chroot environment utilising scripts run during an openvpn up and down sequence. Host OS is ubuntu-12-04, chroot environment runs ubuntu-12-10 A session has ...
0
votes
0answers
24 views

Run a script upon closing a folder/window? [closed]

I'm trying to figure out how to: - run a script(fx. batch) after I close a certain folder/windows in Win7 For instance, I run the following simple script to mount a Truecrypt volume: truecrypt /v ...
1
vote
1answer
31 views

Windows Server 2003: Schedule FORFILE loop in TASK SCHEDULER

I am trying to create a SCHEDULED TASK that will kick off a FORFILE loop, and terminate the process after an hour (or 12 hours). I expect there to be MILLIONS of files the the paths defined, and I ...
0
votes
1answer
36 views

Template for use with Outlook 2010 t enable creation of multiple PST's for many users on one system

This is probably not something many people would have a need for but at this company where there is a large turnover, every user has to have IT create their account on a laptop. Even when recycling, ...
0
votes
0answers
19 views

Running command from script won't give desired output

If I run sudo /usr/lib/update-notifier/apt-check -p &> ~/update-list.txt directly on terminal, I get the update-list.txt file with all the updates in it. But if I write the same command in a ...
4
votes
2answers
119 views

Changing physical path on IIS through appcmd isn't activated

We have come across an issue on IIS 7.5 where we have a simple deploy system which consists of the following: Create a zip-file of new webroot, consisting of three folders: Api Site Manager This ...
1
vote
2answers
53 views

Running a script periodically via a GPO

I search a way to run a script each hour via a GPO accross every computers on a domain. The only way I found is a GPO which create a scheduled task. Anybody have a better idea ?
1
vote
1answer
52 views

Bash, what does this redirect command do

I have a script that looks something like this: ruby foo.rb > log.out 2> error.log < /dev/null & In this case, i understand that STDOUT is redirecting to log.out and that 2> is ...
-1
votes
1answer
38 views

Labtech Scripting [closed]

This is something I’ve noticed to be somewhat of an issue as LT doesn’t run scripts in a logical way. I have a script to do ninite updates. As such, the logical command would be: Shell as Admin: ...
0
votes
1answer
40 views

#! won't make linux run an interpreter

Here's the script: #!/usr/bin/env ruby CODES = {} puts "ok" Under root user everything is fine: # ./test.rb ok When munin's default interpreter is /bin/false nothing is happpening: # su munin ...
0
votes
1answer
56 views

What tools can run scripts on multiple windows servers? [closed]

I'm looking for a tool that can schedule a job (shell script, vbs, powershell) on 100+ standalone Windows servers. I know Altiris can do that, but I think it needs an agent on every server. I prefer ...
0
votes
1answer
30 views

How to tell passwd to use salted passwords?

I am hunting the web on how to change passwords of an existing user using a salted hash. I found that way with adding a non-existing user: ...
1
vote
1answer
57 views

Allow normal user to run PHP script as root using SUDO

How can I allow a normal user on Ubuntu to run php scripts? sudo php /path/to/script/script.php Basically the script needs to be run as root but the users does not have root privileges on their ...
3
votes
4answers
155 views

Disabling ssh as root on Linux boxes and the challenges of writing scripts

It's a common suggestion from security-minded people to disable ssh as root on Linux boxes. My question is this: Let's say you normally write lots of scripts which ssh to a large number of Linux ...
0
votes
3answers
97 views

Local login script to delete folder of currently logged in user

How can I create a login script that will delete the contents of the folder below, each time a user logs off of a PC? (We have a shared PC that about a dozen users use, for a particular program. That ...
0
votes
0answers
23 views

How to remove openstack without reimaging

I would like to be able to remove all open-stack components and all config files that were installed without re-imaging the system. I can delete the files and folders manually, but system changes will ...
0
votes
1answer
69 views

Hyper-V and Windows Server with Powershell/Automated?

So my work is looking into Automating Hyper-V Servers for Test Environments, Basically in the end we want to have a sort of Web/Form interface for selecting a server spin up. Right now it's done ...
2
votes
1answer
48 views

How Can I Source My $Profile From A Powershell Function?

I like to make a lot of changes to my $profile file. After saving a change, I would like to source the file using an "sop" alias. Here's how I hope to accomplish that: set-alias sop Source-Profile ...
0
votes
1answer
107 views

Trying to monitor file/folder changes on the server and send notification. What am I dong wrong?

I am trying to make a script to monitor a directory of the EC2 webserver I am managing. I found inotify and tried to make the following script but upon trying it nothing happened. #!/bin/sh while ...
0
votes
1answer
125 views

How to reference Domain-Admins with icacls?

I need to reference the "Domain-Admins" group in a batch file. The line in question looks like this: icacls "test\folder" /grant mydomain.com\Domain-Admins:F ... and works as expected. But how do ...
2
votes
2answers
144 views

Using API to get info about VMWare datastore

I need to create a report of datastore capacity, provision and usage. What is the best tool to do that? Vcenter API seems more concerned with creating VMs and such. Is this the right tool for the ...

1 2 3 4 5 22