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

How to know if execution program is ok at windows?

How to know if execution program is ok at windows? I prepare a bat file that runs several programs and I handle exceptions in case of errors . On linux a program return a code after execution.
Jhonathan
  • 195
  • 1
  • 1
  • 4
0
votes
5 answers

Restart a Windows service from a script?

I know there are several similar posts on the subject, but what I would like to know is how to re-start a service that has already been stopped. Is there a .bat or .vbs script that would check if the service is stop and then restart it if it's…
0
votes
1 answer

How to Running applications automatically when X starts?

for RHEL5 How to run a script or application automatically after starting X server (after loading level 5)?
0
votes
1 answer

Is it possible to script install modems for Windows XP?

Right now I have to go to "Phone and Modem Options" -> "Modems" -> "Add..." and then select the driver and com port to add the modem. I need to do this about 40 times and on many workstations so I was hoping there would be a way to script this but I…
evolvd
  • 1,384
  • 6
  • 33
  • 58
0
votes
4 answers

crontab added line gone, but script is scheduled

I have a strange thing (i think), I added a line in my crontab on an QNAP NAS with crontab -e i saved (:wq!) This line would have had a script to run for every 5 minutes so i dit 5 * * * * and the script name. And restarted the crontab. This script…
Plumbum7
  • 3
  • 2
0
votes
1 answer

Automate verification of script generated emails

We have over 100 servers that generate hundreds of emails every day using scheduled scripts (cron jobs) when the system/data is backed up or any other activity takes place. The email is sent to our network admin group, so a few people receive them…
ashvagan
  • 23
  • 1
  • 7
0
votes
1 answer

perl dbd::mysql cant install (from asterisk perl script)

I ve got problem with perl script for asterisk. I've investigate that when tping use DBI; -- all statcks. After that i added: my @driver_names = DBI->available_drivers; foreach (@driver_names){print $MYFILE "Driver = $_\n";} **OUTPUT** Driver =…
MealstroM
  • 1,517
  • 1
  • 17
  • 32
0
votes
1 answer

Logging local account lockouts with a script in Windows Server 2008

I would like to know if it is possible to create a script to create a log every time a local account on a server gets locked out.
Andre
  • 1
0
votes
1 answer

Firefox automation script

Some terminals need to be able to automaticaly start Mozilla (or another browser if more convenient) and visit a prespecified page. How is it possible to write a script that runs localy and when invoked it fires up the browser and visits the page?…
dsljanus
  • 27
  • 1
  • 5
0
votes
1 answer

Cron task failing on specific job

On my server I am getting the following error when running one of my cron tasks: CRON[9913]: (CRON) error (grandchild #9915 failed with exit status 127) The server is running Ubuntu-1104-natty-64-minimal. I am using the Whenever gem along with the…
dannymcc
  • 2,717
  • 10
  • 48
  • 72
0
votes
4 answers

Calculate disk space occupied by many .png files

I have 357 .png files located in different sub dirs of the current dir: settings# find . -name \*.png |wc -l 357 settings# find . -name \*.png |…
Alexander Farber
  • 714
  • 4
  • 17
  • 38
0
votes
1 answer

Prompt to user during startup on Debian

I need to write a script which prompts information to the user in case of an error. Is this possible using /etc/init.d scripts + update-rc.d? Is there any other way?
0
votes
2 answers

Need an alerting system if my cloning script fails

Possible Duplicate: How to repeatedly call rsync until files are sucessfully transferred I've configured a nightly rsync to mirror one server to a standby offsite backup server. The total datastore on the primary is 1.5TB. In the course of…
rahum
  • 121
  • 1
0
votes
1 answer

DDASD Template required

I work on second line in my company, and we have a small number of our triage analysts who create the standard AD User accounts on our domain. A lot of the time, they seem to do something wrong, be it they've put the AD account in the wrong OU, or…
Sanial
  • 1
0
votes
1 answer

Batch file to check version on mass computers

Please help me to create a batch file to run the below command (multiple computers) and the result to a text file. dtcheck "computername" /cmd="version"
Mathew
  • 1