The scripting tag has no wiki summary.
0
votes
1answer
17 views
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 ...
2
votes
2answers
27 views
Simulate/script user log-ins to an Active Directory domain
We've had some login issues in our computer lab environment. When a class of 15-30 people try to log in at the beginning of class, they sometimes have to wait upwards of 20 minutes to get a desktop. ...
0
votes
1answer
27 views
Connecting to network printer(s) using net use
I was asked to add pinters to all users on a terminal server. There is a VPN connection between the terminal server and the network where the printer is installed.
I do not have much experience with ...
1
vote
1answer
24 views
Diaspora server auto start when system start up in ubuntu
To start Diaspora sever, always need to cd to the /home/diaspora, then run ./script/sever
My server(Ubuntu 11.10) everyday restart. I want to configure the server(Ubuntu 11.10) to allow diaspora ...
4
votes
6answers
150 views
how to write a script that only acts on new log entries
I feel like this should be a simple thing but I am having a hard time figuring it out.
I am trying to write a script that will monitor one of the apache log files and take some specific action. But ...
-2
votes
1answer
49 views
Script to send login details to an email [closed]
I need a script to email immediately, when ever any user logins to my Linux server.
0
votes
1answer
80 views
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.
1
vote
1answer
65 views
VBscript to Get User's Documents and Desktop folder size
I've been scouring the web for a decent script to allow me to gather folder sizes of subfolders on Windows 7 machines. There's roughly 50 computers I want to get folder sizes on ...
0
votes
0answers
35 views
php5-fpm: bash script to check config before restart
I write a script to create new vhost on Nginx. That script creates Ningx vhost config file, vhost user and dirs, php-fpm pool file.
At the end of the script, I would like to check if config is ok ...
3
votes
3answers
112 views
Direction for Scripting
I'm administering a network and they use a few scripts here. Mostly batch scripts or vbscript. It's a Windows environment, mostly Server 2008 with a few 2003 servers.
My question is Should I learn ...
0
votes
2answers
43 views
CentOS: E-mail notification of failed ssh login attempts
Under CentOS, I need a script that will run every 10 minutes and e-mail me if there are any new failed ssh login attempts in /var/log/secure.
3
votes
3answers
70 views
Need a script/batch/program that runs a command that won't be killed when the parent is killed
The scenario
I use Zabbix to monitor my servers and recently I wanted to add some more metrics for the Windows ones. For security reasons, I used Zabbix's User Parameter feature, but it limits the ...
1
vote
1answer
111 views
How to export User Rights Assignments and import them on another machine
How would one export all of the user rights assignments from one Windows Server 2008 box and import them on another. Neither would be on a domain so this would just be local security policy.
1
vote
4answers
49 views
How can I search IIS logs of several servers at the same time?
I need to search the logs of all the servers in the array for a particular string. Specifically, I need to determine if a given user is using OWA, EWS, or something else with our CAS servers.
Is ...
7
votes
2answers
60 views
How to safeguard a shell script against running out of control?
I've recently had an experience of writing a shell script which crashed a server (and damaged a partition) by consuming all resources. It was hooked up to a cron job, and it seems it took longer to ...
1
vote
1answer
91 views
Nagios checks for mulitple sendmail instance's mail queues
Is there an available perl script or any script for checking the mail queues of each instance of sendmail?
So that we can use that on nagios nrpe, since the mailq command is only designed for one ...
2
votes
2answers
83 views
Delete registry key via CMD script?
I'm want to edit an already production .cmd script file, to have the script delete a certain registry key in the Windows registry.
Firstly, is this even possible, and secondly (if that's not ...
0
votes
2answers
30 views
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 ...
0
votes
2answers
101 views
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 ...
0
votes
1answer
15 views
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 ...
0
votes
1answer
50 views
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 ...
1
vote
2answers
87 views
Linux: ssh to host and use sudo to run a script, runs but part of script fails
I've searched high and low for an answer to this.
I have keys setup so no password is needed for the ssh into remote host.
I have sudo set up with that user so that I can run the needed commands as ...
4
votes
3answers
88 views
Parse and convert ini into bash array variables
I'm trying to convert an ini file into bash array variables. The sample ini is as below
[foobar]
session=foo
path=/some/path
[barfoo]
session=bar
path=/some/path
so these become
...
3
votes
1answer
117 views
Test file for specific permissions
I have a script where I'd like to test a file for specific permissions, specifically 0644, if it is not that then chmod it.
I know I could just chmod it and let it fall through in case it already was ...
1
vote
1answer
109 views
How to set IP Filtering under IIS6
we have a particular application under a virtual directory that is used for administatrive purposes. In order to protect the application, we have IP filtering enabled where we specify a list of ...
0
votes
1answer
86 views
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 ...
0
votes
3answers
44 views
Batch File Syntax to get files from FTP server
I have trouble getting all files from an FTP Server. Usually I get all files using the command line/terminal with syntax the following syntax: get a.txt (very, very time wasting with login ...
0
votes
2answers
58 views
What are the best practices to manage UPS in windows 2008 R2?
with win2k3 i used the ups service to monitor usb connected UPS and launch scripts when ups meets critical battery condition.
The ups service is no more available in win2k8 and power management seems ...
2
votes
3answers
69 views
Prevent sudo, apt-get, etc. from swallowing pasted input to STDIN?
I often write up wiki instructions to install various server packages on Ubuntu (11.10 Oneiric at the moment). They always involve things like:
sudo apt-get install -y postfix
sudo cp ...
3
votes
2answers
66 views
what type of scripting is this and is it suggested for my environment?
First of all, I hope I am not duplicating another post. If so I will delete immediatly.
I have gone through many of the questions/answers on this website trying to find what scripting language I ...
1
vote
2answers
54 views
What's a good way to email sysadmins the first time a failure happens?
I have a cron job which will copy some files and such. From time to time it will start failing due to an inaccessible host. When it starts failing, I'd like to get notified - but I don't want an email ...
2
votes
1answer
71 views
How to get client to update GPO to recognized scripts were added in manually
So I'm attempting to programmatically add a logon/logoff/etc script to be ran with a GPO. I add the scripts in their respective /Sysvol/blah... directory. I update the scripts.ini file correctly to ...
1
vote
1answer
104 views
Keeping a Python Script alive after leaving SSH Client?
I have a while loop in my Python Script and its independent script so I can't run it as a daemon.
Also I have tryed using nohup, but I'm having this error:
root@ubuntu:~/Desktop/starthere-group-ok# ...
2
votes
1answer
45 views
Remote installation script great in XP, doesn't work in Windows 7
I have a script to install an .msi file out to a list of remote workstations. Works fine going out to XP machines. I now get error code 1603 when trying to run out to Windows 7 machines.
psexec ...
0
votes
1answer
36 views
NTP on main server, and alternative on virtual (LXC)
I am setting up a server with several VPS. I am using LXC.
I am thinking it would be better to have only the main server equipped with ntp and have the virtual boxes just get the time from the main ...
0
votes
1answer
44 views
bind shell program to user as root
I have an embedded system I have been developing. I would like to bind a program called HHPConfig, which I wrote and needs root permissions for setting network interfaces, rebooting etc..., to a user, ...
0
votes
1answer
22 views
Moving spam from filter to mail server
I was wondering if its possible to take messages quarantined by a Spamassassin box and move it to the users spam folder residing on an email server. In my case I would want to move mail from an ...
0
votes
0answers
13 views
Generate Script in SQL Server 2000 (in Order)
I want Generate script of all views and functions in my database, but when i execute this script i find a problem of ("object xxx doesn't exist") because i have many views select data from other ...
0
votes
1answer
48 views
start-stop-daemon checking for existing running processq
I'm starting a python script that i've created using start-stop-daemon. It works perfectly in all cases, except when I've forgotten that I've already started it. It creates a new process, but is ...
2
votes
3answers
129 views
Monitor Active Directory modified users/groups
I am trying to set up a monitoring vbscript for active directory. I need to export to a file all users that were modified. This script will run every 10 minutes and export all modified users (account ...
0
votes
1answer
32 views
Can I turn off Office Auto Save feature using ARD?
I have around 300 OSX desktops, and I'm not looking forward to having to walk around to each one to turn off MS autosave, can this be done using Apple Remote Desktop and a script?
0
votes
2answers
53 views
mkdir: cannot create directory `../abc/2011-11-23: No such file or directory
I have got a sftp script that downloads the archives , unzip it and then rename the files according to date and moves it to respective folder.
I had to move the script from USB drive onto a separate ...
0
votes
1answer
39 views
Query Exchange 2007 remotely for a user(s) mailbox size, and quota
Currently I'm using this powershell command on the server in the Exchange Management Shell:
Get-MailboxStatistics username | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize ...
0
votes
1answer
32 views
Postfix : Open relay to script
What I want to do with postfix is have an open relay that accepts all emails. I then want it to push all the received emails to a script.
I have found solutions, but they never specifiy on how to do ...
1
vote
1answer
55 views
Thunderbird - Login Script to create user and email account
is there anything out there that will let me script via active directory and login scripts the creation of a thunderbird user profile and associated email account??
I looked to-do this in Outlook ...
1
vote
0answers
52 views
Controlling rdp listener connections from command line
RPD on my windows 2003 server sometimes becomes incapable to accept connections. But netstat shows that port is listened.
c:\> netstat -ano | find "3389"
TCP 192.168.1.1:3389 0.0.0.0:0 ...
1
vote
2answers
80 views
rsync shell script with input
I would like to have a rsync shell script that the user will enter the folder or file to sync to another server.
i.e. - ./deploy /html/ or ./deploy /html/kuky.txt
the script will wait for the input ...
0
votes
3answers
63 views
Using SSH to find access to a problematic script in logs of multiple domains
I run several (~20) sites on a Dreamhost VPS. Lately I max my memory allocation for the VPS and I want to find the problem.
I would like to have an SSH script that will scan all the log files of all ...
-3
votes
2answers
91 views
Automate root ssh scripts [closed]
We require to be able to run some script as root from nothing other than an SSH login.
IE, we have root and password, and we need to perform a script action on a bunch of servers.
0
votes
1answer
69 views
Scripted install of Debian backdoor/rootkit [closed]
We have a number of servers (100+) that we need to increase a certain type of security on. (sortof internal, sorry NDA).
We have thought about using a rootkit of some sort that would be able to keep ...