Server :: REGEX From Array, Returns No Matches?

Jun 23, 2010

I'm attempting to use REGEX to isolate media (video and audio) essence that relate to alias/reference Quicktime movies. The Quicktime movie filename (excluding ".mov" can always be found in the media-essence filename.Stages of my process are:I cache the contents of a text file into an array ($file). This text file/array contains a list of Quicktime movies and media essence. Essence for each Quicktime movie is contained in this text file. An example text file is below:

Code:
MOVIE1.mov
media.dir/MOVIE1.m2v

[code]....

View 2 Replies


ADVERTISEMENT

CentOS 5 Server :: PHP SOAP Server Returns Array Using NuSOAP Library?

Jul 2, 2009

I have a function in my SOAP server that returns an array. When the client calls this function, it only receives "array", and when I use foreach to print each member of this array, it tells me that this is not an array. If I change the returned value of the function to a string or integer type everything works fine though, so I don't think that there is any problem with the client.I am using NuSOAP library on php to achieve that.I had doubt when declaring the type of return value of the function. In XML schema there is no array type, so I specified the return value as a string like this:

PHP Code:
$server->register("getLocation",
array('country_population' => 'xsd:string',

[code]....

View 1 Replies View Related

Programming :: Perl - Regex With Array Elements?

Mar 13, 2011

I have .txt.gz files that store queries made on a browser, d my job is to analyze them.The information is stored in a xml-like style.Quote:

<browser>lwp-trivial/1.41</browser>
<http_code>200</http_code>
<keywords />

[code]...

View 6 Replies View Related

Programming :: Sed Regex Get Multiple String Match In Array?

Apr 8, 2011

I have a sed match that matches for certain string of a regex expression:

Code:
tname=$(echo "$contents" | sed -n 'some pattern')

How do I match for multiple strings in the $contents and return them as an array? for example

Code:
contents="this is a text, just to match patterns, here is another text to be matched"
the sed func would be able to recognize both "text"s, but only one is outputted?

Possible to put it in an array? so ${bar[0]} gives one and ${bar[1]} gives another

View 3 Replies View Related

Server :: Rejecting Mail Where Sender Matches Recipient In Postfix?

Aug 22, 2009

This seems like a relatively simple question, but I haven't been able to figure it out from the documentation after a couple of hours of searching. I'm running postfix on my mail server, and the vast majority of my spam has the sender address spoofed to match the recipient address. I've got spamassassin up and running, and very little gets through that, so it's not a serious problem, but if possible I would like to be able to reject the mail before it arrives to reduce the system load.

Mail is sent locally via webmail, relaying is denied, so the only way that mail should be sent from the domain is via a connection from localhost. The basic idea I'm thinking of is if the MAIL FROM sender claims to be an address at the receiving domain, but is connected from a remote IP, the mail should be rejected.

View 3 Replies View Related

Server :: VNC Viwer Returns Blank Screen?

Nov 17, 2010

I have vnc server 4.1 installed in server and setup /root/.vnc/xstartup and /etc/sysconfig/vncservers as below.

/root/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
xhost +localhost +'hostname'

[Code]...

now i tried connecting to this server by vnc vnc viwer from my windows Vista machine..But only getting blank screen without a terminal window or anything opened.

View 1 Replies View Related

Server :: Running Process That Sends Email When Returns 0?

Jul 20, 2010

a file or a process that is always running and pinging for example [URL]. returning 1 or 0, when returns 0 (that means have no response) do something else. i already made the something else, basicly sends an email etc.

View 1 Replies View Related

Server :: FreeSWITCH Not Responding To Registration Request - SFLphone Returns A 408

Jul 8, 2010

Server
Distro: Debian Testing (Squeeze)
FreeSWITCH ver.: 1.0.6

Client (Dual-Boot Setup) Problem: Both Windows Vista Ultimate 64-Bit and Ubuntu 10.04 LTS versions of Ekiga, including SFLphone in Ubuntu 10.04 seems to be ignored by FreeSWITCH. FreeSWITCH fails to register. In the client side, the Windows firewall gets turned off for testing while everything in iptables under Ubuntu has everything set to accept in the filter section. In the server side, the firewall configuration is quite basic.eth0: Cable Modem plugged in via USB cable eth1: nVidia Gigabit that connects to my 1Gbit switch

[Code]....

View 2 Replies View Related

Server :: Open A Database File In Sqlitebrowser Returns An Error?

Oct 31, 2010

Code:
kenny_strawn@kenny-AOA110:~$ sqlite3 -html -line /var/www/fluxbb/ProprietarySuckware 'select o_base_url from memos'

Error: unable to open database "/var/www/fluxbb/ProprietarySuckware": unable to open database file
kenny_strawn@kenny-AOA110:~$

This database was automatically generated by FluxBB, so I am wondering just why it isn't opening.

View 2 Replies View Related

Ubuntu Servers :: Citadel-server Install Returns Error Bad Variable Name?

Jan 17, 2011

I'm trying to install citadel server on ubuntu server 10.04 via apt-get install citadel-server. I get an error at:setting up citadel-server (7.71-1)export: 106: 007: bad variable namedpkg script exits with error code 1.would this be due to unmet dependency?WalterPS. filed a bug in launchpad

View 2 Replies View Related

General :: Convert Full-disk RAID5 Array To Partition-based Array?

Dec 23, 2010

I have a RAID 5 array, md0, with three full-disk (non-partitioned) members, sdb, sdc, and sdd. My computer will hang during the AHCI BIOS if AHCI is enabled instead of IDE, if these drives are plugged in. I believe it may be because I'm using the whole disk, and the AHCI BIOS expects an MBR to be on the drive (I don't know why it would care).

Is there a way to convert the array to use members sdb1, sdc1 and sdd1, partitioned MBR with 0xFD RAID partitions?

View 1 Replies View Related

Software :: Bash - Indirect Array Reference To Array With Values Containing Spaces?

Jun 4, 2010

This _almost_ works. I just can't quite get it to honor the spaces.

Code:

#!/bin/bash
profiles=(
PROFILE_ONE
)
PROFILE_ONE=(setting1 "setting number 2")

[code].....

View 9 Replies View Related

Ubuntu Servers :: Creation Of RAID-0 Array In Disk Utility Resulting In Smaller Than Expected Array?

Sep 27, 2010

I have a NETGEAR ReadyNAS NV+ with four 1TB drives in a RAID-5 array. This is our primary file storage. This has previously been backed up to a hardware RAID-0 array directly attached to our Windows server. The capacity of this backup array is no longer sufficient. So the plan was, take a bunch of 200GB to 320GB drives (And a 750) I had kicking around, chuck them in a couple of old SCSI drive enclosures I have collecting dust, attach them via IDA/SATA-to-USB adaptors to a USB hub, attach that to the server, create a JBOD array spanning the disks, and back up the NAS to that. Performance is not an issue as this is just to be used for backup, with the idea being as near to zero cost as possible (Spend so far = NZ$100�ish).

The first hurdle I struck was Windows not supporting Dynamic Disks on USB drives (Required to create a spanned volume). At first I resisted using another machine (i.e. a machine running Ubuntu) as I didn't want to dedicate a piece of hardware to backing up the NAS. I then decided it would be acceptable to do this via a VM, which is what I've done.So I have 10.04 running under VMWare Server 2.0.2 under Windows Server 2008 R2. The disks are all presented to the VM. I wasn't sure if I was going to end up creating the array under LVM or something else, but I noticed Disk Utility has an option to create an array, so I tried that. When I add two 250GB drives, the array size is 500GB. When I then add a 160GB drive, the array size drops to 480GB. Huh? If I keep adding disks (Regardless of order) the final array size comes out at 1.8 TB, as per the attached screenshot. Now with the following drives, I expected something more like:

160 + 250 + 250+ 750 + 250 +200 + 200 + 250 + 320 + 250 + 320 = 3.2TB

Am I missing something or making a false assumption somewhere?

View 4 Replies View Related

General :: Bash: Calculating In Array And Storing Result In Array?

Dec 2, 2010

I have an array called arrayini which stores numbers. I want to take log to the base 2 of each of the numbers in that array and put it in file called result. I've used the following code to do it.

Code:

size=${#arrayini[@]}
for ((i=0;i<size;i++))
do
echo "scale = 12; l(${arrayini[$i]})/l(2)" | bc -l
done >result

It works fine but its taking pretty long to calculate since I've got about 230,000 items in the array. So I decided to store the result into an array hoping that it'd be faster. I tried the following code. arrayresult is where I try and store the result. The code doesn't work because of the second last line.

Code:

unset arrayresult
size=${#arrayini[@]}
for ((i=0;i<size;i++))
do
arrayresult[$i]="scale = 12; l(${arrayini[$i]})/l(2)" | bc -l
done >FILE2

There is a syntax error clearly.

View 6 Replies View Related

Programming :: C Realloc Resize Array / Delete And Add Information Into The Array?

Mar 6, 2011

I am trying to dynamically delete and add information into the array "blah"

Code:
int blahsize = 1;
char** blah = (char**) calloc(blahsize+1,sizeof(char*));
Adding information:
Code:
blah[1]=stuff1;
blah[2]=stuff2;
code....

View 2 Replies View Related

Programming :: Convert Short Array To Char Array?

Jun 7, 2010

I have trouble converting a short array to a char array

Code:

short pShort[4] = { 0x41, 0x42, 0x43, 0x44 };

How to convert this to a char array?

View 4 Replies View Related

OpenSUSE Network :: NFS Server Returns Error For Client Mount Calls - Error 13

Mar 21, 2011

I'm working with OpenSusse 11.2. I installed and activated the NFS server via yast2. I exported the relevant directory via yast2 (NFS server configurastion)
I'm trying to setup my Linux target to boot via NFS. The kernel boots up but fails to mount the file system. When looking on a capture from ethereal it can be found that the NFS server return error when client try to mount the /nfstest directory from this server. The returned error is 13

serverip: 192.168.56.130
targetip: 192.168.20.180
gateway: 192.168.20.101

[Code].....

View 1 Replies View Related

Server :: Array Md0 Is Not Being Automounted During Boot

Aug 6, 2010

I've been experiencing that my md array md0 is not being automounted during boot for strange reason Checking up the boot log I saw: md: md0 switched to read-write mode. And after boot, checking out /proc/mdstat :
# cat /proc/mdstat

Personalities : [raid1]
md0 : active (auto-read-only) raid1 sdb1[0] sdc1[1]
976759936 blocks [2/2] [UU]

While auto-read-only mode I cannot mount md0 So if I put

[Code]....

It gets mounted perfect... But its pretty bad that it doesnt automount, since is a linux server running Debian Lenny with kernel 2.6.32-2 and on that array (not root) there are virtual machines KVM images that should also boot after system load.

View 3 Replies View Related

Programming :: Converting A PHP Array Into An HTML Array?

Aug 9, 2009

I'm writing a PHP program. I've encountered a problem; in the following code I try to pass $_POST['delete'] which is an array as the value of a hidden input to some form, but it doesn't do so.there's something wrong with converting PHP array into HTML array. I'm sure that $_POST['delete'] is not null and is a real array.

echo '<input type="hidden" name="delete[]" value="'.$_POST['delete'].'" />';

View 4 Replies View Related

Fedora :: Password Could Not Matches (login)?

Jul 2, 2010

using fedora 12. I got a problem while trying to login both as root and general user.message was " password could not mathes"then I tried to change the root password by booting as runlevel 1 and it worked f9 and I could able to login,but now suddenly the same problem arises again,. the solution worked for 1 day.I am sure tha am giving the correct password, so I thik there is some other problem.

View 3 Replies View Related

Ubuntu :: How To Uninstall Server (Raid 5 Array)

Dec 10, 2010

I have acquired a dell 2850 poweredge server and installed ubuntu server onto only to find out we cant use linux for its intended use and need to uninstall remove ubuntu and it has a raid 5 array on the server.

View 1 Replies View Related

Server :: Recovering Software RAID5 Array?

Oct 29, 2010

I've had software RAID 5 arrays for a while now, so they were set up before a RAID array could be partitioned. I had two separate RAID 5 arrays on the same set of drives. One was for / and the other for /home. I moved the / to an SSD and figured I'd expand the other RAID array by failing a drive, repartitioning it then adding it back in. After repeating for the remaining drives, I could then expand the RAID array to use the full size of the drives.

Partway through the second drive being added back in, the RAID array stopped with a kernel error. The drive I was adding and another drive both showed as failed. I couldn't restart the array so I copied the failed drive (Seagate's SeaTools did show it as faulty, but without SMART being tripped) to a new one and tried again. dd_rescue reported the drive copied correctly but I still couldn't restart the array.

So I tried the old standby of recreating the array. This allows me to start it but the ext3 file system won't mount. So I then tried my script (listed in another thread) to try every combination of drives to assemble the array and mount the file system. Still no luck.

View 2 Replies View Related

Server :: Recover Raid 5 Array + LVM2?

Jan 27, 2010

I had a raid 5 + lvm 2 array and lost a disk. While it was recovering the array, the power was down and recovery stopped. When I recovered the power and start the machine the array was unable to start, it was degraded and the states were different between disks. Every disk watched the array in a different way. I put you the states:

Quote:

/dev/sdd1
Number Major Minor RaidDevice State
this 0 8 33 0 active sync /dev/sdc1

[code]....

The first part in /dev/sdc1 is the same for all the devices, I just post you the states. Another thing is tha all the devices say that there is no superblock It seems that 3 disks are "active sync" but the states of the others doesn't match between them. And /dev/sdd1 is spare, the disk I added manually at first to start the recovery process.

View 3 Replies View Related

OpenSUSE Install :: No Devices Matches MBR Identifier

Nov 9, 2010

I've made a bootable USB with 10.3 live CD. I can boot successfully using a 10.3 live CD as long as the USB stick is not plugged in, but if I try to boot from the USB stick, or from the CD when the USB stick is plugged in, I get "No devices matches MBR identifier: !" where the bit after the colon is 2 spaces followed by the exclamation mark. I've seen this message reported elsewhere but never with a blank for the MBR id.I'm running on a Dell Insprion 9100 with 1.5G RAM.

View 2 Replies View Related

Ubuntu :: How To Mount NTFS On Virtual Box - No Matches

Mar 14, 2009

My Host OS is XP and I am running Ubuntu on Virtualbox. Trred a readwrite and graphic method to mount NTFS but no matches, permission denied. It's not possible to mount NTFS using Ubuntu on Virtual box?

View 7 Replies View Related

Software :: Unable To Find A Thread That Matches?

Aug 24, 2010

I'm not able to find a thread that matches my problem. It must be a software/hardware bug, because sound works normally on a 2nd computer running the same Debian version (lenny), and it also work on the 1st computer running Debian (squeeze). - In fact the sound was working on the 1st computer in one installation of Debian lenny, but not on a 2nd (same) installation on the same computer. - Given that I had fiddled with its settings (for a different reason), and couln't fix it, I decided that the software had now a bug, deleted everything on the partition and cloned the working Linux on it. It had the same problem, so old me thougth that I had a virus in the MBR and wrote zeros all over the H/D; I then checked that the MBR (512 bytes) consisted just of zeros, and reinstalled vista, Debian lenny and Debian squeeze on the totally clean drive. The problem is still there also on a 2nd lenny installation that I tried, but squeeze works well. It's possible that the lenny installation that was previously working, was doing so due to the magic of Debian-update, but I don't know. The guilty computer is a Compaq SR5760AN (mobo pegatron violet M2N78-LA) with nVidia 0774 chipset and realtek HDA integrated audio. If it's relevant, the DVD drive is HL-DT-ST DVD-RAM GH15L, video is Radeon HD3450, and CPU is AMD Phenom 9650 quad core.If I use alsaconf, it comes up with 'snd-hda-intel' but there seem not to be any intel chip on the machine, and squeeze works and lenny DID also work.

View 1 Replies View Related

Programming :: Sed -n '/pattern/{n;p;}' Is Missing Matches In File?

Jun 16, 2011

I have an interesting problem, sed '/pattern/{n;p;}' file, doesn't seem to be catching all of the matches in my file. As an example of this see below.test:

Turn
Turn
Turn

[code]....

View 5 Replies View Related

Server :: Lost Array Now System Refuses To Shutdown

Apr 24, 2011

I need to force a shutdown. It seems I have lost an array and now the system refuses to shutdown.
Code:
echo o > /proc/sysrq-trigger
gives the warning but no dice.
reboot -f = nothing.

View 3 Replies View Related

Server :: Directly Mount Raid Array Member?

Apr 8, 2010

Is there a way for me to mount a raid array member directly without using any of the raid tools? For instance, I have a raid 1 array that contains /dev/sda1 and /dev/sdb1. How can I mount /dev/sda1 or /dev/sdb1 directly? Doing mount /dev/sda1 <mnt point> does not work. If I try specifying the filesystem type with -t this doesn't work either.

View 1 Replies View Related

Server :: Mdadm Acting Oddly With RAID 5 Array?

Dec 21, 2010

I have been having some odd issues over the last day or so while trying to get a raid 5 array running in software under Kubuntu. I installed 3 1TB drives and started up, my sd* order got all messed up( sda was now sdc and so on). This wasn't entirely unexpected, so I fixed up fstab and booted again. I found all three of the drives I installed, set them to raid auto-detect and used mdadm to create /dev/md0. I then created mdadm.conf by piping the output of mdadm --detail --scan --verbose into /etc/mdadm.conf.At this point, everything was still going swimmingly. I copied over a few hundred GB of data from another failing drive and everything seemed ok. I went to reboot once the copy was done and everything just went weird. All of the sd* drives went back to the original. Of course, this meant that the mdadm.conf was wrong. I tried to just change the device list, but that didn't work. I then deleted mdadm.conf and rebooted. The drive list stayed in the original order this time, so I just tried manually starting the array.

By erasing the partition table of the 3rd drive, I've been able to get it to the status of spare, but it says it is busy when I try to add it to the array. A grep through dmesg makes me think that md has a lock on it. I'm not sure where to go with it now. If anyone has any pointers, I would like to hear them.

Device List(original):
/dev/sda => boot drive, /home /
/dev/sdb => 1.5TB media storage, failing

[code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved