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)

0
votes
0answers
11 views

pssh stderr askpass received prompt

I'm using pssh version 2.3.1 on a RHEL 6 server so I can log into multiple clients in a single run and pull down config. While testing out I am getting an error. [1] 14:45:54 [SUCCESS] user@192.168....
0
votes
0answers
11 views

Exim script to output the sender and receiver

We have an anti-spam system that sometimes create false-positives. When reported, we verify and whitelist the domains or IPs that have been wrongly triggered. However, I'd like to automate this by ...
-2
votes
0answers
20 views

Have a windows 7 Task scheduled batch run as a regular-user johndoe which starts an exe on johndoe login, how to prevent his killing of process?

I am starting a script from Windows Task scheduler as a regular-user johndoe and my script starts an exe that runs in background when johndoe user logs in and I want to prevent user from "killing" the ...
0
votes
1answer
56 views

bash script works correctly but skips commands in cron if I am not logged in via ssh or I was connected recently

I am trying to schedule some backup scripts in cron on a CentOS release 6.7 (Final). This is the full backup, basically mounts a remote directory, checks if there is enough space available for doing ...
0
votes
0answers
20 views

Different behavior of the cron [duplicate]

I have a script (seekCustomers.sh), which perfectly works from the command line: #!/bin/bash echo "Hello" The script is owned by non-root user. I want to put it on schedule using cron daemon. So, ...
-2
votes
1answer
26 views

RUN exe file with a script on Windows 7 32bit [closed]

I want to run google chrome on windows 7 32bit with following target path "C:\Program Files\Google\Chrome\Application\chrome.exe --kiosk-printing" When I enter this path to Target Path field in ...
0
votes
3answers
42 views

Automated/scripted conversion of Normal.dotm from Word 2010 format to 2013

I want to migrate many users from Office 2010 to Office 2013. As we are working in RDP sessions, the migration per user consists simply in changing the server name in their local .rdp file. However, ...
0
votes
3answers
105 views

Obtain a list of servers from AD on which a specific software is installed?

Is it possible to obtain a list of servers from within Active Directory on which a specific software is installed? For example, get all servers that have wampserver version 5 installed on them.
1
vote
1answer
38 views

Getting my server maintenance script right

I have two routine postgresql maintenance tasks that require deletion of aged rows from certain tables of my web application. Both take ~1 hr to complete, respectively. Currently, each of these ...
1
vote
1answer
94 views

Writing a script to find what computer a user is logged into

So I want to specify a username and return the computer name. When I run this, it tells me that my $computers obj is null. Why would $computers = Get-ADComputer | where {$_.accountdisabled -eq $false}...
0
votes
0answers
20 views

One time login/pin FTP server

I'm wondering if someone can help point me in the right direction for a feature I would like to have implemented. I'm running an amd64 Debian 3.2.73-2+deb7u2 x86_64 GNU/Linux server with PureFTPD as ...
1
vote
1answer
121 views

How to copy a file to network resources using UNC paths

I'm trying to do something pretty simple, and conceptually it should work, but it doesn't seem to, and I'm not sure why. I have a file I need to copy to multiple folders on multiple servers. I've been ...
0
votes
0answers
8 views

DPM - Reporting of express backups

How can I get out of DPM server a list of the latest successful "express Backups"? ( And good to have time taken? ) The monitoring page just shows everything as a recovery point. My protection ...
3
votes
1answer
66 views

How to combine properties in Powershell from multiple Objects

Many times I've needed to combine data that can only be retrieved from two separate powershell CMDLETs into a single dataset for export. I believe this should be do-able by creating a PSObject and ...
0
votes
1answer
188 views

Script removal of Insider Hub app-Win10

I'd like to script the removal of the Windows 10 Insider Hub app. I've had no success with Powershell-admin: get-appxpackage -allusers -name *insider* | remove-appxpackage I can do it manually in the ...
-1
votes
1answer
92 views

Get AD users who have not logged in the past x Days and are member of a specific group?

I'm sorry if this looks like a duplicate. Actually the same question has been asked under http://serverfault.com/questions/783399/get-a-list-of-users-who-are-domain-admins-and-have-not-logged-in-the-...
1
vote
2answers
71 views

Start Process as normal user powershell

I'm creating a powershell script that does some automatic setup of new computer deployments. I'm in a situation where I want to launch an executable as a regular non-admin user from an elevated admin ...
1
vote
0answers
41 views

Systemd scripts will not run on boot

I have three docker containers that I've created systemd scripts to run at startup. I've run systemctl enable xxxx for all three services, and i've tried systemctl reenable xxxx as well. I've created ...
0
votes
1answer
51 views

IPTABLES nat to LXD Containers

I created the following temporary rule that I enable occasionally but I would like to remove it without the need of restarting the machine. Can someone provide me the command? sudo iptables -t nat -...
1
vote
1answer
91 views

Log requests for a specific location

Have the same problem. Tried with named location, but i always get the same thing, access log created for specific location (/calendar) is empty, and logs are stored in general access log (/) in a ...
-1
votes
2answers
48 views

create folder from a list

i need to create a personal folder for each user of my company. I've tried to create a batch script using ND command and it works just with name folder without . (dot) The name of each folder ...
-1
votes
1answer
42 views

Powershell script to take and delete snapshots

Im new to powershell and i want to create a script to take a snapshot of all the running vm's and delete the snapshots that have more than lest say 5 days. What i have is this: $Time = 5 $VMs = Get-...
-1
votes
1answer
45 views

service script for any linux dist… possible?

I'm developing an app which will be run on linux. It can run on most distributions. Is there any way to create a startup/service script that will work on any distribution? I've read about /etc/init.d ...
0
votes
0answers
27 views

How do I set domain machines to ignore domain in login credentials?

Basically, some machines will allow remote access with an incorrect domain but correct username and password, but others won't. How do I set a server TO do that? My issue is that I have a host ...
0
votes
0answers
18 views

How to automate tasks for non-techies like customer support?

Our Customer Support often needs small changes to our system. These are things that a dev does by running a tiny script, but that's out-of-reach for CS. I'd like to be able to make those scripts ...
-1
votes
1answer
68 views

“Ipcalc -n ipv6_addr” command is giving error

I am trying to calculate network address of Ip address by using Ipcalc command. when i am using ipcalc -n ipv4 address,then it is running fine and give the network address for the IPv4. But when i ...
0
votes
1answer
31 views

Same script, same OS, same installation, failing

So I'm working with RANCID to monitor some switches and I'm using clogin now to test some modifications. I'm working in two different computers but both of them from the office. Althought they are ...
-1
votes
2answers
46 views

Script to delete older files and copy what is left

We have a server that runs an application that is used internally. The application has a utility that creates its own backups every 24 hours. Backups are stored in: /var/application/application-data/...
0
votes
0answers
11 views

MRTG Target field

Can I use OID and Shell Script in the MRTG Target field at the same time? For example Target[myrouter]: check_connection.sh&1.3.6.1.4.1.999.1:public@mydevice Please advise. Thanks
0
votes
1answer
37 views

Log all bash actions with multiple scripts

Using the command below, I can log all actions that happened inside that script. bash -x script.sh Sadly, the script calls another script, which does not have the -x setting active then, i.e. the ...
0
votes
0answers
72 views

Python to change password for user in JunOS device

My script is good to make device changes but the only thing im unable to do is to change the password one a particular user. Im running JunOS set system login user user authentication plain-text-...
1
vote
0answers
35 views

Command after apt-get install is not executing in script

I'm writing a script which is meant to initially set up my Droplet. In the script, I'm opening ssh connection with my Ubuntu 14.04 server as follows (with USER and REMOTE variables previously defined):...
0
votes
0answers
10 views

How to correctly process backups from webdav folder

So I have a GNU/linux server running apache with mod_dav. Users can upload their backups into their respective user folder. I would like to write a scanner that scans those directories and passis it ...
2
votes
1answer
122 views

Script to List all Desktop and Laptop Model for Server 2008 Domain

Is there any way I can list all the desktop and laptop model? There is no naming convention and I'm having difficulty differentiating laptop and desktop in our environment. I have already tried to ...
1
vote
1answer
193 views

How to hide command window at while running powershell script through the task scheduler?

I have powershell script with GUI form which show message by condition. This script is runnig through the task scheduler every 15 minutes. Every running shows me concole window, then GUI form with ...
0
votes
0answers
26 views

Bat file stops after invoking psexec

I want to have a simple bat files that prompts for the workstation name, uses psexec to connect to the remote computer and then run a script on the pc so I can check the results. If I run each line ...
-1
votes
1answer
39 views

env not working in FreeBSD cronjob [duplicate]

On my FreeBSD server, I have setup a cron script for backups using Duplicity. This script is as follows: #!/bin/sh export PASSPHRASE= export FTP_PASSWORD= keyid= remote= excludelist= /usr/local/...
0
votes
1answer
52 views

Expect Scripting Issue Reading From File

I am trying to change the password for a user on a bunch of linux based routers pulling IPs from a list. The iplist.txt is just a list of ips (one per line). This is the code I am trying to use: #...
3
votes
0answers
66 views

Preprocessor for Dockerfile with variables and include files

I have been using docker for a number of my applications now. I have gotten to the point that I have about a dozen dockerfiles. Frequently I have to make the same change or include something in a ...
-1
votes
1answer
52 views

create an array of dates in bash scripts and match it with current date [duplicate]

Actually i want to create an array of dates and compare it to the today date if it match with the current date then execute test.sh file otherwise exit the loop in bash script. I did like this... **#!...
-3
votes
2answers
65 views

How to compare today's date against an array of dates [closed]

I want to create an array of dates and compare it to today's date if it matches then execute test.sh file otherwise exit the loop in bash script. I have this so far: #!/bin/bash now=$(date +%Y-%m-%d) ...
0
votes
0answers
90 views

Tracking network activity for user login/logout/session timeout/session expired

Porting from StackOverflow (35741797), since it might be a bit more relevant here as it is related to network. We have a situation on our side where we are trying to trace the login/logout/session ...
-4
votes
2answers
48 views

execute bash script on last thursday of every month [closed]

Actually i have a bash script file and i want to execute it on the last thursday of every month please help me to find out the proper solution of that problem using bash scripting.
0
votes
1answer
203 views

Expect script too fast: add a sleep between each line read from a file

I am trying to automate switch commands. It's almost all good, but when the expect script reads each line from the file containing my switch commands (listed line by line), the switch seems to stop ...
0
votes
2answers
31 views

batch usb letter execute command

I have and batch script to execute a command to delete several ext. Example: set /p drive=Choose the letter of usb: if %drive%== E goto E Example (if you choose E) E: del /f /q E:\*.lnk *.inf *....
3
votes
0answers
92 views

How can I programmatically unbind IPv6 from a network interface on a Windows 7 machine?

I need to unbind the IPv6 services from a number of client workstations running Windows 7. ("Untick" the selected box in the screenclip below.) For what it matters, they currently all have a single,...
0
votes
1answer
51 views

printing a children's full tree recursively in bash script

sry for not being familiar with question conventions since im new here. i want to write a script that prints the full children's tree recursively of a given pid. i got so far as: ps h -ef | awk '$...
0
votes
3answers
55 views

Matching first block of text from a file, between 2 strings

I'm trying to match only the first block of text between 2 strings: 'menuentry ' and '}' from a file as follows: Input file: (some irrelevant text) menuentry 'My Customized Linux, with Linux 3.10.0-...
0
votes
1answer
19 views

grep the result of cdrecord or wodim

I would like to parse the result/progress of a running cdrecord -v burn process. What I tried so far was cdrecord -v dev=/dev/sr0 -data foo.iso 2>&1 | grep -E 'Track [0-9]+:.*written'. ...
3
votes
2answers
61 views

Compare string on shell script

I'm creating a script to check the requirements about VM in one of my customer. The first part of the script is check if the OS is virtual or not. To achieve this goal I create the following script. ...