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
1 answer

Restart python script if it crashes

I have a VPS running a simple python scripts. However, sometimes the script crashes. How can I make sure the script starts agian?
donald
  • 453
  • 2
  • 6
  • 17
0
votes
2 answers

Add time to Windows script

I have this mini Windows Script which is execute every hour it basically create a file every hour but I need to rename the file using date (which is already done) but I am not able to add the time .....code that creates my perfstats01.txt file: SET…
karlochacon
  • 51
  • 2
  • 6
0
votes
3 answers

Basic Automation

I'm a newbie server administrator having recently purchased an account from Slicehost.com and using it to host a few personal sites, so I can learn more (I'm primarily a web developer). Years ago I remember playing with batch scripts on Windows that…
Hellweaver666
  • 165
  • 1
  • 1
  • 4
0
votes
3 answers

installing a script as startup service in ubuntu

I have a script openerp-server.py in ~/openerp/stable6/server/bin/.I want it to be run at startup.(As a service or not - I don't know the difference) These are the steps I followed 1 Created a script 'openerp-server' with the following lines in…
Jibin
  • 111
  • 1
  • 4
0
votes
2 answers

Extract table values from html web pages automatically

I use MRTG to monitor devices' CPU/MEM/traffic usage, and each device has different ports/vlans/interfaces. When I want to create a table/excel showing statistics of all the interfaces, I found it very inefficient because I need to click into about…
Andrew
  • 113
  • 1
  • 5
  • 14
0
votes
1 answer

Discerning which GNU screen window is being used in a shell script

Using a shell script, how can you tell if a screen is running using shell scripts? For example, using pseudocode: IF (screen.screenname.running == TRUE) or something like that.
Gray Adams
  • 165
  • 7
0
votes
1 answer

llinux - replace subnet mask in ifcfg-eth0 with sed or awk

I have 30 linux servers that I need to change subnetmask. I want to use a simple script or a simple command to change the subnemt mask from 255.255.255.128 to 255.255.255.0 in ifcfg-eth0. can someone please help? Thanks, Elad.
edotan
  • 1,876
  • 13
  • 39
  • 57
0
votes
1 answer

sql script mssql express 2008 windows 2008 server R2 x64

Scenerio:I need to run an update sql script after another scheduled task. server=Windows Server 2008 R2 x64 db = Sql Express 2008 when? - Everyday buy Sunday(i know how to do this) Why? A third party exe is adding 1 in two columns where it needs to…
nkuebelbeck
  • 71
  • 2
  • 4
0
votes
1 answer

Running a script at Windows 7 or 2008 shutdown

Is there any way to run script before the computer running Windows 7 or 2008 shuts down without using local group policy editor or domain based policy? Regedit tool should be OK if possible.
MatBanik
  • 379
  • 3
  • 7
  • 28
0
votes
4 answers

Command Line Winrar & Batch Scripts

I've written a wee batch script to backup some stuff on my desktop and dump it over the network to a share... The only thing that's bugging me is the verbosity of rar.exe while it's doing the compress part of the job. Anyone know if it's possible…
Eoin Campbell
  • 105
  • 1
  • 1
  • 7
0
votes
2 answers

How to make a bash script work on multiple account?

There are several admin-like accounts in our Linux server, different account for different purpose. Sometimes, there need multi-account co-work to finish a job. Manually, I can login and type the commands. But How can I make it into a single script…
valpa
  • 319
  • 9
  • 15
0
votes
2 answers

running a linux script to check on process and if stopped how to make it start the process

We are running OES2/SuSE. The problem is with our groupwise webaccess. From time to time it stops and we just have to restart the process. The commands are: rcgrpwise status rcgrpwise start How would I create a script that would check the status…
Grant
  • 1
  • 1
0
votes
1 answer

Getting the current status (logged in/current program running) of OSX systems in a local network?

I'm exploring building an internal site that displays what computers in the lab are currently being used. My initial idea involved a webapp that took in info from each computer every 5-10 minutes and then displayed that information. What I'm…
0
votes
1 answer

Detecting when Windows installation is completed

I got the task to install Windows Server 2008 R2 inside a virtual machine (WMWare Workstation) with Powershell. It was quite easy to do the installation of Windows inside the virtual machine. Now, I want to detect when the installation is completed…
0
votes
1 answer

Running root script upon ssh'ing as a particular user, but not upon standard login

I would like to do the following : If I login as user ABC via the login screen, do nothing. However if I ssh as ABC, then I want to run a root script, without being prompted for roots password, and without having to store roots password somewhere…
artella
  • 1,009
  • 2
  • 10
  • 6