The tag has no wiki summary.

learn more… | top users | synonyms

7
votes
1answer
179 views
+100

Layer 2 Loop Avoidance: Three Switches in Series

I know this seems like a homework question, but it's actually part of a larger project (and network) and need to break it down into chunks so I'm clear with what I'm doing. I've never worked with ...
1
vote
1answer
19 views

.htaccess rules cause infinite loop

I am trying to set up some .htaccess rules to stop my WordPress wp-login.php page being accessed from anyone outside of the UK (I keep getting hundreds of people daily trying to hack into it from ...
1
vote
2answers
62 views

Lighttpd Redirect to SSL results in 301 redirect loop

I am running lighttpd 1.4.31 with ssl support and am having an issue with forcing https on a specific virtualhost. If I disable the redirect line from the following config, it works as expect (http ...
1
vote
0answers
120 views

Network topology change every 2 seconds

I'm having some weird troubles with our smb network. There isn't any documentation about the structure/devices or which cable is attached to which wall socked and I'm discovering lots of weird stuff. ...
3
votes
1answer
47 views

kpartx verbose info: what does it mean?

When mounting images with the wonderful kpartx in verbose mode it displays some, likely very useful, information: # kpartx -av wheezy_cln.img add map loop0p1 (252:2): 0 131072 linear /dev/loop0 2048 ...
0
votes
1answer
77 views

Is it possible to redirect network traffic between a host and a guest VM that share a NIC?

I have a CentOS 6.3 machine running several guest CentOS 6.2 VMs. I would have liked to setup a filesystem passthrough between the guest and the host but it seems that this functionality is not ...
6
votes
3answers
67 views

How to avoid automatic responses from putting our mail server in a loop?

I have a mail server X which acts as a middle man between the customers (A) of our feedback applet, created to be used in their websites, and customers (B) of our customers. So, whenever B sends ...
1
vote
1answer
116 views

Redirect loop with rewrite rule in Nginx

I have a simple static web site on Nginx, and I'm trying to implement a redirect from mysite.com/index.html to mysite.com, so it's more search engine friendly. But I get a redirect loop. I wrote this ...
0
votes
0answers
14 views

File system loop detected in /var/named/chroot/var/named/ CentOS6.3 [duplicate]

Possible Duplicate: File system loop detected in /var/named/chroot/var/named/ When I use find command on shell, I got the following error. find: File system loop detected; ...
2
votes
1answer
70 views

Copying lines from multiple logfiles, based on content of the line

I have multiple log files of 10mb each. The content of the log files always look like this: 06.09.2012, 21:36:02:83: xxxxx yyyyyy zzz 06.09.2012, 21:36:02:84: xx yyy zzz 06.09.2012, 21:36:05:24: ...
0
votes
2answers
73 views

Variable inside bash's while loop never changed

Why does the following code always outputs "0"? #!/bin/bash RETVAL=0 echo -e '1\n2' | while read number; do RETVAL=1 done echo $RETVAL
0
votes
5answers
203 views

Massive symbolic link creation using for loop in bash

I just wondering myself if it would be possible to create massive amount of symbolic links using a for loop? For exemple, I have a lot of directory on my /tmp directory (I know, not recommanded) and ...
2
votes
2answers
152 views

Is there any way to make ntpd to iteratively consult the server addresses given in the ntp.conf file?

Suppose the machine has an ntp.conf file that looks like this: driftfile <path-to-drift-file> server <NTP-server-1> server <NTP-server-2> server <NTP-server-2> For some reason, let ...
0
votes
2answers
63 views

Pausing deletion of directories if load is high

I have a list of directories that I'd like to delete. However when I do them all at one, load spikes on the box. Does anyone have an example of a script that would wait until load was under a certain ...
1
vote
0answers
121 views

vhost.conf with plesk makes infinite loop

So I'm trying to make rewrite rules for my just migrated site and now we're using PLESK (unfortunately in my opinion). So, in order to make those rewrites I'm using the vhost.conf file in ...
0
votes
0answers
204 views

Is it possible to use variables and loops into Facter::Utils::Resolution.exec code?

I would maintain a few Tomcat's web applications with Puppet. Application's configuration file and path to this file is taking from server.xml. Configuration files are generating from templates. There ...
1
vote
1answer
194 views

kvm - cpu cores are disabling and enabling in a loop

On our virtualisation server with KVM, cpu cores are disabling and enabling in a loop after 10 minutes (every disable results in 15 seconds hang for all virtual machines). It happens from ...
0
votes
2answers
94 views

What's the difference between ps processname* | kill and kill -p processname* in powershell?

In powershell, is there a difference between: ps theProcessName* | kill and kill -processname theProcessName* Thanks
3
votes
1answer
326 views

Fiber Channel Loop vs Point to Point

So, I'm playing with a couple of QLogic QLA2340s connected directly together. I've got options here to either have them act as a loop, or in point to point mode. What's the difference if I'm only ...
0
votes
2answers
117 views

Recursive deletion of files (bash)

I'm familiar with how I would tackle this with PHP, however I'd like to get some more practice with bash scripting. The task is to delete all files in a folder, which itself contains subfolders ...
-1
votes
2answers
212 views

Bash loop to move directories on a remote host via ssh

I'm trying to figure out a way to perform the following loop on a remote host via ssh. Basically it renames a series of directories to create a rotating backup. But it's local. I want it to work ...
-1
votes
1answer
77 views

rpm is freezing in the same moment

I'm trying to install an rpm package: rpm -i rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm And got this via strace: http://pastebin.com/zP45epkd I'm on CentOS 5.7 64-bit: 2.6.18-274.18.1.el5 #1 ...
0
votes
1answer
76 views

Software or script to find source of recursion/loop in directory?

As per title. I've noticed du and find commands can never finish but directory structure is very complex to search for loops etc by hand. I suspect there is one wrongly placed symlink there. Is there ...
0
votes
0answers
136 views

scp in for loop for installing printers — connection refused

I could've sworn I was able to setup printers by: setup first host with lpadmin setup additional hosts with for loop: wherein stop cups copy printers.conf over start cups for host in ...
5
votes
2answers
2k views

Puppet: Checking sets of variables

Edit: I have come up with what I think is the best way to go about this. Thanks to the people answered my question - it helped along the way. I'm going to post my solution so that others can find it ...
0
votes
3answers
73 views

problem with loop in shell

I have a problem with loop , I used while in my script as below : while read LINE do { } done but the problem is each time I should press enter while running the script, and it supposed to do this ...
0
votes
1answer
340 views

How to stop a runaway loopback process/device without reboot

I am using LVM on my debian 5 server and tried to create a new disk with a partition and a filesystem. server:/# pvs PV VG Fmt Attr PSize PFree /dev/sda2 primary lvm2 a- ...
0
votes
3answers
138 views

Connecting server to more than one switch

I have 3 switches, one NEATGEAR GS748T and two JGS524. Initially I wanted to connect them in a triangle loop, but later suspect that the JG524 does not have spanning tree support. Now I have a Dell ...
1
vote
2answers
745 views

Force SSL on one page via .htaccess without looping

Okay, I have this code: RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} ^/borrowing/ill/request\.php$ RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] The way I would expect this to ...
1
vote
4answers
103 views

How to prevent “for” from dividing directory names?

I'm trying to list all hidden directories with a "for" loop: for i in ``ls -a | grep '^\.'` `; do echo $i done The problem is that the loop divides some directory names in two. For example: ...
0
votes
2answers
267 views

How to iterate over a list of files and perform an action on them

I want to write a script (or preferably an alias) that does the following: Find all the files matching a pattern *.jar Iterate over all those files, and run jar tvf <jar file name> | grep ...
0
votes
1answer
125 views

How can I iterate through each ec2 instance attached to a specific load balancer in bash?

I have this bash line that gives me the IPs of the EC2 instances attached. export LB_NAME='lb' ec2-describe-instances `elb-describe-instance-health $LB_NAME --show-long | cut -d , -f 2` | grep ...
9
votes
5answers
1k views

Mounting a partition from a raw DD image file of a physical disk

I have a DD image taken from the raw HDD image (/dev/sdb). This image file contains an XFS filesystem that I need to mount. It is much too large to restore to disks (2.6TB img file) so I would like to ...
3
votes
1answer
214 views

Windows server 2008 hours lasting restart loop then runs OK for months

My windows server 2008 (PDC) is providing AD+DNS+DHCP+RADIUS services for my network with about 100 PCs. It runs just fine for MONTHS, only when i need to restart him (updates or other reason) ...
0
votes
2answers
577 views

copy all *.mkv in subdirectories to parent directory

Roughly, I have a folder setup like this on a linux server: /show/season01/show01/shows01e01.mkv /show/season02/show01/shows02e01.mkv /show/season03/show01/shows03e01.mkv I want to eliminate the ...
0
votes
3answers
981 views

How to kill all screens that has been up longer then 3 weeks?

Im creating a script that i am executing every night at 03.00 that will kill all screens that has been running longer than 3 weeks. anyone done anything similar that can help? If you got a script or ...
0
votes
3answers
1k views

bash one-liner loop over directories throws errors

I'm trying to build a bash one-liner to loop over the directories within the current directory and tar the content into unique tars, using the directory name as the tar file name. I've got the basics ...