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 can I append IPs (a whole class C range) to a file using shell scripting?

How can I use shell scripting to append a range of IPs to a file?
neotobe
  • 11
0
votes
3 answers

Batch file and other scripts on windows 2008 r2

is thee a way to make a all the scripts in a specific folder running without the need of the UAC prompt? or maybe using power-shell to run the scripts without using "Set-ExecutionPolicy Unrestricted" is there any way to just mark some scripts of the…
0
votes
2 answers

List of Different Directory Sizes

I have a list of folders on my network in a .txt, which are stored in different locations throughout the network. Looking for a tool or script to pull the size of those folders and output them to a txt/cvs files.
Malnizzle
  • 1,441
  • 2
  • 16
  • 30
0
votes
2 answers

How to get linux start a script when files did changed

i'm not that good configuring a linux server. So i hope someone can give me a hint for my problem. I have installed trac for managing projects. It contains a plugin for doxygen. As far as i know i need to generate the doxygen output by myself. So i…
kshala
0
votes
1 answer

bash script parameters & error trapping

I've created a bash script for a cron job that I'm using to convert an uploaded file to a couple of formats and then moving it to another folder where another cron job will store it away, etc. The problem is that I created this with a single…
Scott
  • 267
  • 1
  • 4
  • 10
0
votes
1 answer

Creating Directories with a Batch file

I am intested in creating a batch file that can read in a text file which has four variables: customer name, customer number, customer order, products orders. I am using: FOR /F "delims=, tokens=1,2,3,4" %%f in (test.txt)do md…
0
votes
2 answers

how to manage dates in shell

emphasized textI have a file containing 14000 dates . I wrote a script to find the last 5 days ,…
matarsak
  • 37
  • 5
0
votes
2 answers

How can I script creating email aliases for existing mailboxes in Exchange 2003?

I need to create lots of email aliases (more than I want to do manually), so I want to know if there's a way I can script the addition of aliases to existing mailboxes/users. I don't mind if I have to use powershell or an external tool or not. For…
0
votes
2 answers

Easiest way to call script for incoming email

On a Ubuntu server, what's the easiest way to run a script (e.g. Python) when an email is received? Email filters would be good, but not necessary.
summatix
  • 225
  • 1
  • 3
  • 6
0
votes
1 answer

PowerShell Delete Directory Based off Date in Name of Folder

I recently put together a PowerShell script that creates directories named by date in the following format "yyyyMMddHHmm" What I have been trying to do is figure out how I can go back through and have the script (or just make a new one)…
Tyson Navarre
  • 482
  • 3
  • 10
  • 23
0
votes
1 answer

How can I send cc: using Bmail.exe

We use bmail.exe for a lot of automated work and sometimes we'd like to use a cc: but the app doesn't provide an input parameter for one. However it does allow you to set the body and subject so is there some way to sneak a cc: into the subject or…
ChuckB
  • 103
  • 1
  • 4
0
votes
1 answer

Centos LInux shell script execute 2 minutes after the server has been rebooted

I would like to have a simple shell script that will be executed 2 min after my server came up after reboot. I just want to have a service restarted. can anyone advice? Thanks.
edotan
  • 1,876
  • 13
  • 39
  • 57
0
votes
1 answer

Problems encoding an HTA file to run Java+Batch files for DNS server

I'm having a problem coding a .HTA file, and I really need some help. I've been searching all over the place and I can't seem to find what I need to add to this code to make it run. I'm trying to get the HTA script (running javascript) to, utilizing…
0
votes
2 answers

Trojan of Web-server

Possible Duplicate: My server's been hacked EMERGENCY In our web-server most of the sites are infected with this JS-Downloader Trojan. It injected the following code. I've tried to clean up the server with "linux malware detector" and ClamAV, but…
Minhaj
  • 177
  • 4
  • 14
0
votes
2 answers

Remote GPO through BATCH Script exiting

Right so, I'm trying to make a remote GPO script that from one of our management machines will push the GPUPDATE command to certain servers. After some googling I found a script that I tried to adapt / make run. The problem however is that when I…