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
2 answers

Script out SQL Job Create Statement Without SSMS

Does anyone have an idea of how to generate the Create statement for a SQL Agent Job? I've looked everywhere, and I can't seem to find a search result that doesn't involve using SSMS and going through the Object Explorer. I've gone off and found…
Black Dynamite
  • 523
  • 2
  • 5
  • 16
0
votes
2 answers

How to run batch file without a window in ONE file

I know how to run batch files without a window thanks to this question here: Run a .bat file in a scheduled task without a window. The first answer is the one I am using. It states that to run a batch file without a window, create the following vbs…
0
votes
1 answer

Zabbix: debug external script

I have made an external script (snmp_max_io written in Perl). When run with and IP-address, it logs input to syslog and it prints a single 64-bit numeric value and set the exit value to 0. Example output: 916418801 I have added it in…
Ole Tange
  • 2,946
  • 6
  • 32
  • 47
0
votes
2 answers

How to discover my own IP address after login?

When I use SSH to connect to a Linux server, I see a message informing me about the origin of my last login. For instance: Last login: Mon Jul 7 14:37:09 2014 from host.example.net I would like to know if it's possible to discover the IP/hostname…
Alan
  • 3
  • 1
0
votes
3 answers

How do I gather OS information about all users in AD?

I'm looking to make a script or something along those lines which will allow me to check the OS version of all users within the AD, without interrupting daily operations. So far i've found this script which finds OS information,…
user2670669
  • 13
  • 1
  • 4
0
votes
2 answers

Bash Script keeps respawning after it should die

#!/bin/bash PID=$(pidof daemon) kill $PID while ps -e | grep "[d]aemon" >> /dev/null; do sleep 30 done sh -c /root/daemon This script is set on a cronjob to kill and restart this program. It does that but then after the script should exit, it…
italiano40
  • 103
  • 3
0
votes
1 answer

Why does this command to send emails work from the shell but not as a cron job?

I have a problem with cron jobs, I need to send email notification to users, I use this command curl "http://example.com/index.php?option=com_community&task=cron">/dev/null 2>&1 When I run this command in shell it works, and it sends emails, but…
0
votes
2 answers

Automate app pool recycling of an Azure Cloud Service Web Role

How can I script (e.g. using PowerShell) the action to recycle the app pool of a web site hosted in a Web Role on Azure Cloud Services? Only one instance of the cloud service is running (used for development). The reason for recycling is to work…
Edward Brey
  • 103
  • 1
  • 7
0
votes
1 answer

Find Users without a password in UNIX AIX

I'm searching for a script that finds users who don't have a password. Could anybody please explain me the commands that are needed in such a script?
0
votes
1 answer

Screensaver startup script (batch or reg) GPO, silent install

I have an application, which after it disconnects from a VPN connection, resets the screensaver settings. What I'd like to do is create a GPO script or batch file to run every time the user logs into the workstation, without the user having to…
0
votes
1 answer

VBscript - returning the path & size of a file

I would like to add a piece of code to SYDI that would return me the location & size of a specific file. For example, a server "X" has a DB file(s) & path like this: "C:\XYZ\Database\randomfilename.ext" and which is lets say 45 GB. The…
user2629636
  • 774
  • 5
  • 19
  • 40
0
votes
1 answer

Bash -- Using a character-based graphical utility to store output

I'm using bash to script a remote dialing program in an Ubuntu(14.04) server and I am having some significant trouble trying to read the output from it. I would like the program to execute as I would normally have it and then I have the timeout…
rwaweber
  • 11
  • 1
0
votes
1 answer

Finding valid email service providers in a large list of domains

I have a list of approximately 13K free email/webmail providers from circa 2000. Obviously the vast majority of these services have gone out of business, and the domains have either lapsed, or been snatched up by cybersquatters, who have put up a…
0
votes
1 answer

How to catch system events when a program is being updated and robotize routine steps when you update software?

I'm a support engineer for an accounting program. The program runs under Windows. I have to update many of this accounting software bases daily. I mean the software is always the same. But users may have, say, 50 informational bases installed. Each…
0
votes
1 answer

Can't figure out how to get started with powerdns-recursor lua scripting

I have a server (Ubuntu 12.04) where I run powerdns-recursor. I'm trying to add some logic to certain requests and have got my target set on lua scripting for powerdns. I don't seem to be able to get it to work though. I guess/hope that the version…
azzid
  • 133
  • 1
  • 7