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

Backup sync script not working

I have a text file with all the folder names in date order which I'm trying to call in a script to rsync to once backup folder, basically merging all the incremental backups. #!/bin/bash filename=/home/user/Scripts/Testing/temp.txt while read…
Grimlockz
  • 325
  • 1
  • 2
  • 11
0
votes
2 answers

Merge incremental rsync backups

I need to merge my incremental backups into the secure folder (which is the main backup folder) in order of date. Someone has helped with the script to rsync the documents each night via a cron job: $ for f in `ls -t /var/backups`; do rsync -aL…
Grimlockz
  • 325
  • 1
  • 2
  • 11
0
votes
2 answers

Windows Service Based Software to Run Script Everytime a file arrives

Does anyone know of a tool were that is service based which I would be able to run a script every time a file arrives in a directory? I would write the script all I want is the tool to be a service based application.
0
votes
2 answers

Set security on pattern of sub folders (Server 2003)

I have a folder structure similar to the one shown below these paragraphs. How do I change security on every 'Photos' folder without clicking through each individually in Windows Explorer? There are about 50 top level folders (Bob, Jim, Eva, etc,…
0
votes
1 answer

Monitor Exchange Email Address and run scripts

Okay... Not sure how "out there" this thought is... Right now to send a pager message (aka text message), a user logs into our AS400... logs into the program... enters user name and message and hit's F10 to send. With a little looking, it seems…
WernerCD
  • 344
  • 2
  • 6
  • 18
0
votes
1 answer

Send commands to EC2 Ubuntu instance

I create an instance automated with the AWS SDK and want some shell scripts to be executed by the box once it boots up the first time. BUT only on certain conditions, so I cant place this scripts in the crontab or init scripts. Any ideas or…
javadude
  • 239
  • 2
  • 6
  • 14
0
votes
1 answer

Shutting down ESXi on Battery Backup

Possible Duplicate: PowerChute for VMware ESX4 I came into an issue where I have an APC that doesn't have a network shutdown card in it. I figured I can map the USB connection over to one of my hosts, install the software, and if there is a power…
Nixphoe
  • 4,584
  • 7
  • 34
  • 52
0
votes
1 answer

SNMP Custom Script Execution in Win 2008R2

I'm trying to execute a custom Script that is readable from SNMP service. Let's try to explain my purpose. I have a Win2008R2 server I have a PowerShell Script that "echo" something and return an Integer (error code ...) I'm trying to get my Script…
Kortex786
  • 373
  • 1
  • 4
  • 14
0
votes
1 answer

Ubuntu using screen to control a Java server

I have a shell script that makes a backup of my server files before starting it. However I wish it to instead of just running it open a new screen session and then start it from there. Once its running I want to periodically send commands to…
bbq
  • 1
0
votes
2 answers

Extracting the 'In real life' value from finger

I want to get a user's real life name based to print during the login script. I'm using currently the following command: finger | grep $LOGNAME | head -1 | awk '{print $2 " " $3}' Is there any better way? I did not see in finger's man page that it…
RonK
  • 241
  • 1
  • 5
  • 13
0
votes
1 answer

Shell command to find and file the last modified file in a certain directory

I want to create an alias that displays the latest log in a certain directory - something like: ls -lat *log* | tail -1 | less The above command does not work as the output of the ls -lat command does not produce a single final name but a full list…
RonK
  • 241
  • 1
  • 5
  • 13
0
votes
1 answer

How can I define a variable in a TCSH script that will not be exported to the process which invoked it?

I know that in KSH, if I write export A=B the process which invoked my script can evaluate ${A}, and if I write A=B, then ${A} will have no value outside of my script. How can this be done in TCSH? I only know of the style: setenv A B to set value…
RonK
  • 241
  • 1
  • 5
  • 13
0
votes
2 answers

script - extract multiple files

I have 30 tgz files like these: live-3.0.10-20101031.tgz live-3.0.4-20101005.tgz when I extract them it will be extract in to "live" folder.(ie: tar xvzf live-3.0.10-20101031.tgz will extract to "live" folder I would like to have a small script…
edotan
  • 1,876
  • 13
  • 39
  • 57
0
votes
1 answer

Any technical reasons for avoiding GUI on 64-bit Windows Server 2008 R2?

I am new at setting up servers. I can see people reaching for console-only installations of web and SQL servers. I realize that low-quality graphics drivers and the simple fact that graphics driver took up a significant portion of memory space…
0
votes
1 answer

bash script to rename (mv) a file on a remote machine in linux

I would like to have a script rename a remote file (with ssh?). I'm not sure how to do it.
edotan
  • 1,876
  • 13
  • 39
  • 57
1 2 3
99
100