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

A Sourceforge-like mirroring system for use in my servers?

I want to set up a download area within a site, (FTP or HTTP, doesn't matter) and I would like to have at least a handful of mirrors scattered around the world. I would like the download links to choose a mirror transparently for the user. It may be…
JCCyC
  • 680
  • 3
  • 13
  • 24
0
votes
2 answers

HPONCFG use variable as input instead file?

I'm currently writing a script to get all the embedded health of an ILO. What I want is to avoid to create file, so I've create my xml request but I tried with no success with the /i parameter of HPONCFG :-( Does anyone have successfully used a…
0
votes
1 answer

Should I run an aws-ec2 backup script from the instance itself?

I have seen a lot of Amazon EC2 backup scripts that utilize the EC2 API. Specifically, I'm interested in scripts that use snapshots of EBS. I found an interested script with a "pruning strategy" here:…
0
votes
1 answer

pass command with stdout to a bash function

ok.. this is the deal. i have a bash script like the following. the script is only to show you what i mean .. it may look strang... but is exactly what i need.: #/bin/bash runcommand () { message="$1" shift echo "$message" $@ >…
derelict
  • 3
  • 2
0
votes
2 answers

Cron daemon's status check on production server

I have a script which need to be run as cron job. In the staging environment i could run the script as a cronjob. but in the production environment it is not working, so i checked whether cron daemon is running on the production ps -ax|grep…
kitis
  • 1
0
votes
5 answers

Weird init script issue with corosync

This probably has a simple explanation, but I certainly can't think of it. I've got corosync installed (via yum), with it's default init script. Something is strange on this particular CentOS installation as I often need to manually link…
user705142
  • 433
  • 6
  • 16
0
votes
1 answer

Syntax error near unexpected token `fi'

I have been trying to write a while loop bash script that will check the size of two directories, and echo that out to a text file in the www folder. After my while loop stubbornly refused to work, I decided to simplify it to make sure I could get…
DarthCaniac
  • 209
  • 1
  • 3
  • 8
0
votes
2 answers

Script to delete Shortcut on each user's desktop

I'm looking for a script to remove a .lnk file that was placed on every user's desktop. I installed a program on a terminal server that put a .lnk file on every user's desktop, rather than putting one shortcut in the "Public" desktop folder. I have…
Jake A
  • 454
  • 2
  • 10
  • 22
0
votes
3 answers

init.d tomcat6 script

I "installed" tomcat on ubuntu by just unzipping it. Is there a standard script I can use for /etc/init.d/tomcat? Or do I need to create one? Currently I have created one that works, but I didn't know if there was a more correct way to do this.
Jeff Storey
  • 448
  • 1
  • 7
  • 19
0
votes
1 answer

Add a SQL user similar to a current user via PowerShell?

I'm slowly but surely perfecting a new user script. As it is, my script will do everything to add a new user to our domain, except one thing. We have an in-house program, webpage front end that connects to a SQL database. Typically I go to the…
Don
  • 838
  • 8
  • 19
  • 33
0
votes
1 answer

how to rdiff-backup with list increments

I have already created nfs server and client for backup web server and cms server like at http://www.myee.web.id/2012/04/nfs-server-for-backup/ Then I installed rdiff-backup, for backup I running command like below: # rdiff-backup…
user1316095
  • 37
  • 1
  • 2
0
votes
2 answers

VBScript with ADsDSOObject no longer working after move to Server 2008 R2

we recently moved some scripts from a 32 bit Windows 2008 server to a new Windows 2008 server R2 64 bit machine. Now we have some trouble with a few VB Scripts. Let's take this one for example: Set objcon = CreateObject("ADODB.Connection") Set objrs…
0
votes
1 answer

Automatic alert/notification of calendar items added to Public Folders

We currently use Public Folders with Exchange 2010. We have a series of shared calendars throughout the organization. Some of the items posted require us to set up devices (video conferencing for example) at a certain time, but the end users who…
Don
  • 838
  • 8
  • 19
  • 33
0
votes
2 answers

Use number of downloaded file in wget as variable in bash script

Can I get the number of downloaded files with wget -r and use that as a variable? I want to write a script that runs multiple wget commands in it (using -q so i can control output) and then at the end, add up the number of downloaded files and echo…
E Steven
  • 3
  • 2
0
votes
1 answer

How can I retrieve statistics from my ghost cast server?

I have a GhostCast server running for deploying images. I would like to have each ghost cast session to write to a file ( can be multiple text files or append to one file already there ) statistics. I know this is possible based on the options…
Zero
  • 315
  • 1
  • 5
  • 21