similar to: [OT] Simple Shell Script (while loop)

Displaying 20 results from an estimated 700 matches similar to: "[OT] Simple Shell Script (while loop)"

2009 May 13
3
Shell Script Pointers?
Hey Listee's I am trying to write a shell script to sort and compare my blacklist for squidGuard with the nightly updates that come down in a tar ball. It should be rather simple but I'm not to grate at this. The script is to run nightly, it will download the latest blacklist tarball, un tar it and then add any new entries to the existing black list. The blacklists work by having a folder
2009 Jun 03
3
System V Init Script
Hey Listees, I have a question (hopefully quite simple) about the system V init scripts in /etc/init.d. I have an app installed and for some reason it had no system V init script. It has been installed a long while now so I can't quite remember whats going on but basically I remember I wrote the init script my self and the app is enabled as a service which chkconfig to run at system levels 3,
2009 Mar 19
4
Being Green, Time to make the servers sleep!
Shadies and Mentlemen; I am trying to be green and put our backup servers to sleep during the day and have them wake on LAN and fire back up at night for our nightly backups as "sleep" is a sort of low power usage mode. (At this point I would be curious to know the different levels of sleep, what can I achieve? Does my server just drop into a low power state, or can I stop the hard
2009 Jun 10
3
Crontabs
Hey list, I have several crontabs set up to run at night and I'm not convinced they are running but of course, I'm not here to see for sure! The crontabs are like the following example; 30 20 * * * sh /home/a_user/nightlyscrips/nightly_script_1 > /home/a_user/nightlyscripts/`date +%d-%m-%Y--%H-%M-%S`.log However, if this would have successfully ran last night I would surely expect to
2009 Apr 29
3
Rsync/SSH automation problem?
Hi All, I have a win2k3 server that its backing up to a CentOS 5.3 server. On the Win2k3 machine I plan to have rsync back up nightly to the CentOS server through ssh. The command I am using is as follows: rsync -vrPtz -e ssh myuser at myserver:/remote/backup/folder/ /local/backup/folder/ This all works great for the inital test except its prompts me for a password for "myuser" (as
2009 Feb 02
2
Redistributing CentOS
Hey Listees, Just a quick question. I hope this isn't received incorrectly by everyone as I do mean the best for the CentOS project; I am wondering if it would be frowned upon to upload CentOS to my RapidShare account. I understand I can freely distribute CentOS but to what extent? In its simplest form I only really want to upload CentOS 5.2 to my RapidShare account for speed. I had to
2009 Jun 05
3
Swap priorities with swapon (Is my swap drive working?)
Hey Listee's I have a CentOS server with 2GB of ram and a swap drive of 4GB; swapon -a shows my swap drive as 4GB with only about 350 bytes in use (which is fine as my server idles with about 350-400MB ram usage so no swap should be in use. However my one and only swap drive had a priority of -1. I had read that the swap drive priority doesn't matter too much because I only have one swap
2008 Dec 23
2
Bash Script for Beginners! oh dear :'(
Hey guys, I'm a bit of a beginner (understatement!) with shell scripting and seek help! I am setting up our new squid proxy. Its working a treat and squidGuard is the icing on the cake. But, I am trying to write a shell script to search through our black list category's for squidGuard and remove the parsed value; Scenario: /some/directory/where/blacklist/is/stored contains about 40-50
2009 Jan 06
1
xCache install error ($PHP_AUTOCONF?)
Hey Guys I'm trying to install xcache on our web server (php optcode cacher) but I am having the following error. I have download the xcache tar ball, unzipped and when in the unzipped directory attempting to run phpize but it fails with the following error: [root at server1882 xcache-1.2.2]# phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend
2009 Jan 27
2
Upgrade to 5.3?
Hey Listee's! I'm not that up on CentOS so I'd be curious to know if it is possible to upgrade CentOS 5.2 to 5.3 without reinstalling? Perhaps via Yum? Or can you get update RPMs? I hope this doesn't pose to much of a stupid question. Thanks for your help everyone. Regards, James ;) -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT/MU/U dpu s: a--> C++>$ U+> L++>
2011 Feb 16
1
caret::train() and ctree()
Like earth can be trained simultaneously for degree and nprune, is there a way to train ctree simultaneously for mincriterion and maxdepth? Also, I notice there are separate methods ctree and ctree2, and if both options are attempted to tune with one method, the summary averages the option it doesn't support. The full log is attached, and notice these lines below for
2009 Jun 19
1
Shell Script: Simple array usage = bad substitution?
Hey Guys n Gals; I have some arrays that I can't seem to expand correctly (if that's the correct word?), imagine the following example: #!/bin/bash myArray=("First" "Second" "Third") First=("Monday" "Tuesdays" "Wednesday") Second=("One" "Two" "Three") Third=("A" "B"
2009 May 19
9
Hang at 5:34 pm EST
Some at 5:34 pm EST DAILY, all my call get disconnect. I tried RE-INSTALLATION, I tried Reinstallation on a virgin HDD, but its same. I tried changing VOIP provider I tried changing Internet Provider..But no help.. What could be the reason ? Here are my enties of crontab : ### recording mixing/compressing/ftping scripts 0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * *
2009 Dec 01
6
Unable to share directory via Samba?
So I went to System > Administration > Server Settings > Samba and added a folder to share and initially set it to guest access to get things going. I couldn't access this one and only share on this server with guest access from either my Windows laptop (XP Pro SP3) or a Leopard server (10.5.8) so I changed the settings to use user authentication and added my local user details
2011 Feb 02
6
Lost root access
So on a virtual server the root password was no longer working (as in I couldn't ssh in anymore). Only I and one other know it and neither of us have changed it. No other account had the correct privileges to correct this so I'm wondering, if I had mounted that vdi as a secondary device on another VM, browsed the file system and delete /etc/shadow would this have wiped all users passwords
2013 Jan 27
1
lapply and SpatialGridDataFrame error
Hi all, I have a set of 54 files that I need to convert from ASCII grid format to .shp files to .bnd files for BayesX. I have the following R code to operate on those files: library(maptools) library(Grid2Polygons) library(BayesX) library(BayesXsrc) library(R2BayesX) readfunct <- function(x) { u <- readAsciiGrid(x) } modfilesmore <- paste0("MaxFloodDepth_", 1:54,
2011 Feb 03
3
User Details
I have some questions on how I can perform the following actions from the terminal in CentOS 5.5 final. My Google searches aren't helping and I keep seeing references to the command 'useradd' but this isn't present on my box; -How to add a new user? $ useradd -bash: useradd: command not found (This is the same for my normal user and when logged in as root) -How to set/change an
2010 Aug 07
6
ext4?
Listee's... I have a 5.5 box and I have formatted a partition as ext4 however I can't mount it, the mount command is telling me its an unknown file system type. fsck tells me the partition is a clean ext4 partition but I can't mount it. Some reasearch has lead me to believe the problem is that ext4 isn't enabled in the kernel by default in 5.5 (this was originally a 5.2 box that
2011 Feb 16
6
Authentication Problems
Hi List, We have a CentOS VPS running a web site in a DC far away. The chap that dev's this site told me he couldn't SFTP in yesterday, his password was being rejected (I went to his desk to confirm and saw it was telling him the password was incorrect but neither him nor me had changed it and we are the only two with access to this VPS). So I logged in as root and reset his password, be
2009 Apr 17
1
R on Windows and RMySQL
I have successfully installed R (version 2.8.1) and RMySQL (version 0.7-4) on my PC (Windows). Now I have a problem running RMySQL on R. I constantly receive the following error-message: Error in utils::readRegistry("SOFTWARE\\MySQL AB", hive = "HLM", maxdepth = 2) : Registry-Schl?ssel 'S' nicht gefunden Error : .onLoad in 'loadNamespace' f?r