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

tail -f AND allow text input

I want to create a script that allows some interactivity by tail -f logfile from myService allows text to be entered and sent to myService What I could not solve yet is this two functions working parallel in one terminal. I would also like to…
0
votes
2 answers

Powershell pipe exporting to csv is loosing data

I'm trying to write a script that will take input from a .txt file of IP address. Do a reverse DNS lookup to get the hostname of the IP address and then export that data into .csv file. Here is what I have so far. # getting the IP's from the…
0
votes
1 answer

Script to apply Simple Finder restrictions to Mac OS X user?

Is it possible to script (e.g. with AppleScript or bash shell script) applying the Simple Finder and an associated application whitelist to a local user account on Mac OS X? We are using Mac OS X 10.8.5 and have a need to be able to do this on…
0
votes
1 answer

Create a trigger when a mobile connects at network

I'm a complete dummie on Network subjects. I'm trying to create a log, when a specific iPhone/Cellphone connects into a wireless network. The main goal is pull a trigger (create a log file, send a mail, create a post message to a web server etc)…
cleliodpaula
  • 119
  • 2
0
votes
3 answers

Exclude with the find command

I need some help getting the find command to work right in a script working on. I need to be able to exclude some directories. Below I have what I'm doing as a work around. sudo find / ( -name firefox -o -name thunderbird -o -name seamonkey \) -type…
Cyberninja
  • 121
  • 5
0
votes
2 answers

Synchronizing processes accross two servers

I have different processes that have to be run sequentially, but they are on two different servers. In short here what I want to do: 1. Run Process 1 on Server A 2. Run Process 2 on Server B 3. Run process 3 on Server A But the second process cannot…
jfmessier
  • 163
  • 1
  • 8
0
votes
3 answers

Create a cleanup cd/floppy disc?

I need to be able to do the following: Boot from said disk delete all C:\documents and settings\jafdkjewi folders (Excepting All Users, Default User, and Select Few others) reboot Help!!!!!!!!!!!!!!!!
Nathan Lawrence
0
votes
2 answers

Execute script on remote machine which is not in windows domain?

Requirement: As part of deployment procedure I have to execute scripts on target servers. Problems: I don't want to log-in into every server using RDP just to execute a script. Some servers are not part of the domain. IT doesn't allow using WinRM on…
Anil
  • 103
  • 3
0
votes
1 answer

Query in dsrm command

I need to remove 1000 computers from AD. I tried the script below, but it's not working. When I used dsmod to disable computers, in the same script, it works. @echo off set ComputerList=C:\Users\a058059x\Desktop\Machines.txt for /f "delims=" %%a in…
0
votes
0 answers

Get unused Nagios both services and commands

I have a monitoring server, based on Nagios 3.2.3, installed via source code, and using GroundWork Monitor Architect for managing Nagios configurations. My question is if possible (and how to) get a list of services that are not applying to any…
mvillar
  • 438
  • 1
  • 7
  • 19
0
votes
1 answer

Parenthesis around value with Augeas lens?

How can I create an Augeas lens that will allow me to extract a value field from within a parenthesis? Background: I'm starting an Augeas lens for managing NASL files for OpenVAS. I need to be able to make a few arbitrary changes to a large number…
Tim Brigham
  • 15,545
  • 10
  • 75
  • 115
0
votes
2 answers

Create a batch file that deletes all user data folders except for All Users and Default User?

I am using Windows XP and would like to create a batch file that deletes all user data folders except for All Users and Default User. How can I achieve this?
Nathan Lawrence
0
votes
1 answer

Executing CScript scripts from an ASP script fails

Context: Windows Server 2003; IIS 5 I'm trying to launch a JScript file from within an IIS application. I keep getting Permission denied 70 0 Microsoft VBScript runtime error Just in case you're thinking that it's because I'm having a…
bugmagnet
  • 236
  • 1
  • 3
  • 16
0
votes
1 answer

Disable "Windows Firewall with Advanced Security" for all profiles(Domain,Public,Standard) in local GP using script help! Windows 7 Clients

We need Windows7 with windows firewall to be turned off , so the GOLD image has windows firewall turned off for all profiles(Domain,Public,Standard) and Windows Service disabled No the same GOLD image deployed with MDT (Apply local GPO) has enabled…
0
votes
1 answer

Is there any script to do accounting for the proftpd's xferlog?

I would like to convert from the xferlog format that proftpd uses into per user in/out bytes, to have a summary on how much traffic does each user use per month. The exact format of xferlog is this: Thu Oct 17 12:47:05 2013 1 123.123.123.123 74852…
aseques
  • 718
  • 4
  • 12
  • 28