Programming :: Screwy/incorrect Behavior In PHP Script?

Jul 5, 2009

I have some PHP code that is supposed to invoke a bash script and it doesn't seem to be working. The basic idea is that it is pulling down an HTML file, scanning it with clamscan, and then reporting whether or not an infection is found in the source code. Not perfect but it doesn't have to be. The shell script is as follows:

Code:
#!/bin/bash
in=/tmp/foo.html

[code]....

View 2 Replies


ADVERTISEMENT

Programming :: C++ Behavior Different On Win/ubuntu?

Jun 9, 2011

So i have this simple c++ program, which has an array of ints and a pointer to it. Then i have to change one element in the array. Problem is that on ubuntu(netbeans) it works the first time i change the element, then for the other times there is no change in the array after leaving the function.

First i thought it was a bug, but i tried the code on win(visual studio) and it worked like it should.

I don't understand what the problem is? Im not using any platform specific function(that i know of )?

View 12 Replies View Related

Programming :: Perl Behavior When Process Launched In `backticks` Crashes

May 11, 2011

I have a friend (really), who is the author of a Perl application that uses backticks to launch an external application. The process reads a largish set of data files, and printing largish amounts of data which is consumed by Perl. Very rarely, the external application crashes. When it does, the Perl script has been seen to hang, and the host CPU usage goes to 100%. The Perl script can be killed and the host recovers.

The question is whether this is predictable/expected behavior, and if it is, is there anything within Perl which can be used to defend against this behavior. I have already recommended the use of the open() form of reading from a child process, but I'm not sure whether that really accomplishes anything. My theory on the matter is that Perl ends up busy-waiting on the child's output, never receiving any EOF, and consuming all CPU. I cannot see how using open() changes that behavior. I am now interested in this problem so I can avoid causing similar behaviors in the future, and just because 'inquiring minds wish to know'.

EDIT: I suppose I should have added that this is on generic 32-bit Linux hosts; Perl 5.8.X

View 11 Replies View Related

Programming :: Incorrect Selection Of The C Library With Build Root?

Aug 1, 2010

I'm trying to use buildroot to cross compile some libraries for me. To do so I've set up build root to point to my working tool chain in the menuconfig.All seems fine however when I try to make (buildroot) I get the following error

rm -rf /root/buildroot-2010.05/output/build/buildroot-config
mkdir -p /root/buildroot-2010.05/output/build
cp -dpRf package/config/buildroot-config /root/buildroot-2010.05/output/build/buildroot-config
Checking external toolchain settings
Incorrect selection of the C library
make: *** [/root/buildroot-2010.05/output/stamps/ext-toolchain-installed] Error 255

I know it's pointing to the correct files and gcc as any wrong paths are reported in make menuconfig.

View 1 Replies View Related

Fedora :: Where Did 'Window Behavior' Go

Nov 27, 2009

There used to be an option within the Preferences section in Gnome for 'Window Behaviour' where you could change the behaviour of windows such as roll up on double click instead of maximize and that sort of stuff.I can't seem to find it on F12 and can't find anything else that allows me to adjust those types of behaviours.

View 2 Replies View Related

Debian Installation :: Odd NIC Behavior On Install?

Sep 10, 2010

Using a Realtek 8111/8168b Revision 1 NIC on a desktop comp, it's being detected by Lenny, Squeeze, and Gentoo (09/02/2010) installers (all are AMD64 distro's being run on a dual core intel processor), the r8169 driver is being loaded automatically on all of them. However, at the moment the NIC is detected during the net-installs, it goes dead until power has been cut. The switch doesn't register it as being active, nor do any of the activity lights on the motherboard register it as being active.In Gentoo's setup I can run an ifconfig and see the NIC as eth0 as it should be, I can ping the loopback as well as a statically assigned IP address. However pinging anything else in the LAN results in timeouts, and anything outside of the LAN results in hosts not found.

View 7 Replies View Related

Fedora :: Odd Widget And Desktop Behavior?

Jan 22, 2011

I'm running KDE on Fedora 13 and was trying to alter some display settings so that the windows wouldn't maximize when dragged to the edge of the screen. I did that, but at one point "Kwin" crashed, and now there's some odd things happening.

1. I get the "drag me" palm when I'm mousing over the desktop and if I click, I can drag the background around as if it were a window.

2. My "maximize" "minimize" and "close" buttons don't work.

3. It appears nothing in the titlebar of windows works: can't drag them, can't shade or do anything "clickable" -- close, min, max, nothing works.

I tried returning the settings to their original state but it didn't help.I tried restarting the computer too, and that didn't help. I'm guessing something crashed and a setting got hard set that shouldn't be. I'm also guessing that if I rename a .kde/something folder it will reset to defaults. What .kde folder should I play with?

View 1 Replies View Related

Fedora :: Get Back Old Alt+Tab Behavior In F15/GNOME3?

May 28, 2011

After upgrading to F15 I noticed that Alt+Tab behaves now differently. For example, if I have several terminal windows open, I can't cycle through all of them by just pressing Alt+Tab repeatedly. Now the system just displays one terminal icon and icons for each terminal window, but if I keep pressing Tab (Alt being down all the time), it does not switch the window.

I want back the old behavior of the Alt+Tab keys!

View 12 Replies View Related

OpenSUSE :: How To Adjust CD Mounting Behavior

Feb 19, 2010

Under Suse 11.1 & KDE 3.5, when a CD was inserted, the disk was automatically mounted at /media/cd-label. With 11.2 & KDE 4, I get a pop-up from the task bar, from which I must select the CD, and then select the Open With File Manager option. Then (and only then) is the CD mounted at /media/cd-label.Is there a setting that I can change that will eliminate the requirement for all the mouse clicks and just have a CD automatically

View 9 Replies View Related

Ubuntu :: Different NTFS Volume Behavior In 10.04?

May 17, 2010

Ubuntu 64 bit is installed on the hard disk with two partitions: one for Ubuntu, another is NTFS partition called Shared. Before upgrading to 10.04 Shared volume was available. To mount it, it was necessary to enter the password.After upgrading to 10.04, I see two volumes: Shared and Shared_. Places menu contains Shared item. When I click it, it opens without password, and shows /media/Shared_, with correct contents. Original Shared volume appears in the media directory:

Code:

root@alex-64:/media# ls -l
total 12
lrwxrwxrwx 1 root root 6 2010-04-21 19:49 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2010-04-21 19:49 cdrom0
drwx------ 2 root root 4096 2010-05-09 08:25 Shared
drwx------ 1 alex alex 4096 2010-05-17 08:56 Shared_

Shared volume is empty. Can this be fixed? It is OK to work with Shared_ volume?

View 3 Replies View Related

Ubuntu :: Odd Behavior In Lucid After Boot?

Jun 3, 2010

I upgraded to Lucid from Karmic a few weeks ago. The upgrade went fine. Then I decided to move my exit, maximize, and minimize buttons to the right side. I used Ubuntu Tweak to do this. Since that time I have very odd behavior after I boot Lucid.The booted system comes up with an X for a cursor. There are no exit, maximize, and minimize buttons on my window bar. Finally, I can open a terminal, but cannot type anything in it.Sometimes I can get things back to normal by using Ubuntu Tweak to move the buttons to the left or right (depending on where they were before the boot). Sometimes I have to open System>Preferences>Appearance> and change Visual Effects from None to Normal or vice versa.I have tried metacity --replace (after getting the terminal window to allow me to type in data), but after I reboot, things are back the way they were. I have an Nvidia GeForce 7300 LE on board graphics card, and I am using the Nvidia current version driver. When things are working correctly, System Monitor shows a compiz process running but not a metacity process. Is this correct?

View 8 Replies View Related

Ubuntu Installation :: 11.04 Tried - Very Odd Screen Behavior?

Apr 12, 2011

I just tried uprgading from 10.10 on my daughter's pc to 11.04(beta) as we wanted to find out about Unity et al. I thought the upgrade went well but on reboot when the desktop comes up, it's all funky in behavior - mouse is jump, arrows don't reliably work the menus - odd background images show up in graphic blocks. Do you think I can salvage this, or should I am I stuck reloading back to 10.10?

View 1 Replies View Related

Server :: Odd Bind Behavior With Wildcards?

Apr 18, 2011

I've got an interesting problem when it comes to wildcard entries in bind. If I put the following in:

qa.express IN A 172.16.0.10
* IN A 172.17.1.156

If I then look up "express.example.com" it doesn't return an answer - it *should* return 172.17.1.156, but it won't unless I put that hostname in specifically. qa.express.example.com resolves as expected.

View 3 Replies View Related

Software :: Rsync Behavior With Symlinks

Feb 24, 2011

I am trying to do an rsync that includes a symlink in a folder. I only want the symlink to change on the destination if the mod time of the symlink on the source is newer. The behavior i am seeing is that the symlink on the destination is always updated to match the source regardless of the mod time.

View 2 Replies View Related

Slackware :: KDE 4.5 Bug In Configure Window Behavior

Oct 12, 2010

Has anyone noticed this bug in KDE 4.5? It started for me with the official 4.5.1 packages in -current, and is now continuing with Alien Bob's 4.5.2 packages. I don't think it happened with previous 4.5.0 builds I was using.

1) Right-click title bar, select "Configure Window Behavior"
2) the "Desktop Effects" option is selected by default, but displays the "Window Decorations" screen instead.
3) Clicking on another option on the left will show appropriate screen.
4) Finally clicking on "Desktop Effects" will show the proper screen to configure effects.

[URL]. [In the screenshot above, you can see "Desktop Effects" pre-selected, but displaying the wrong screen.]. Bug still shows up with a brand new user account with fresh .kde. My searching for other bug reports has turned up nothing, so I'm wondering if this is unique to slackware for whatever reason. I'm running slackware64-current, up to date, with NVIDIA binary drivers.

View 7 Replies View Related

Fedora :: Live CD'S Unexpected Behavior At Installation

Sep 17, 2009

1 Choose install to free space on HD where Lenny was the only other OS. No windows this unit.

2. Progressed through disk one and 2 and at end of 2 when no question was asked concerning MBR I knew I had lost dual boot.

3. Fedora booted and I thought the first thing I will do is contact forum and see if I can correct these shortcomings. No internet access in Fedora and that was due I am sure to a choice at setup I did not realize.

4. So I put gparted live CD in, deleted that partition, rebooted to a black screen with word grub flashing cursor and sorry I forgot the text.

5. Went back with gparted to look over the partition and all I could see was the boot flaf was gone (If I remember right that is not a necessity as long as there is /. But I went to flags checked it again rebooted same screen. Obviously Fedora did something to MBR?

6. Deleted Lenny, reinstalled and here I am so someone satisfy my curious nature.

View 2 Replies View Related

Fedora :: Unable To Customize Window Behavior

Jun 29, 2010

I just installed Fedora 13. I am looking for the place to change my window behavior settings. I want windows to gain focus and move to foreground when I move the mouse over it. I had it set like this in Debian, and I have it that way in fedora 11 on my lap top. But for some reason I can't locate the settings. can someone tell me where it is in Fedora 13?

View 4 Replies View Related

Fedora :: FC15 Hibernate Behavior Different From FC14

Aug 31, 2011

I have just upgraded my Lenovo T61 from FC14 to FC15. Under FC14, I had the system set up to hibernate when the lid was closed. When I opened the lid, the system would automatically come out of hibernation in just a few seconds and I would be back to where I was.

Under FC15, I have also set it to hibernate when the lid closes. When I open the lid, nothing happens until I tap the power button, and then it comes out of hibernation via some kind of reboot: I see the Lenovo splash screen, then the machine beeps and goes into a wakeup routine, which takes much longer than it did under FC14.

View 2 Replies View Related

General :: Emulate Mouse Behavior On Windows/Mac?

Feb 19, 2011

I predominantly use Ubuntu at home, which means I am used to "highlight 'copies' and center click 'pastes'" (I believe this is true for all X-windows-sever machines, but I don't know). Unfortunately, that is not the behavior on the machines I use at work (I have a Mac and Win 7.). Is there an application which would let me imitate this mouse behavior for either of those OS's?

View 1 Replies View Related

Ubuntu :: Startup Bash Script Behavior?

Feb 19, 2010

I have script that is called from a startup init script before login. It has some different behavior than if it ran from a login script. It doesn't allow to have input characters deleted on a line and doesn't allow for the break command. It's part of Live CD, I'm going to make publicly available, so I want to boot straight to into the script.

View 1 Replies View Related

Ubuntu :: Screensaver/power Saver Odd Behavior?

Apr 2, 2010

I have a screensaver set to run after 10 minutes and then the screen is set to turn off after 30 minutes, but it seems that it never consistently stays off (after the 30 minutes), and very often turns back on and runs the screensaver instead. It seems to be in an endless cycle without me doing anything to wake it. Is there any way to fix this? It's killing my power usage. Karmic, core2duo, nvidia 7600GT gfx cards using latest nvidia drivers (but also happened on 190, and I think 185)

View 2 Replies View Related

Ubuntu :: Odd Behavior From Update Manager - DeVeDe?

Apr 10, 2010

I have been having a frustrating issue with Ubuntu 9.04 on both my laptop and desktop machines for several days now. An Icon shows in the panel telling me there was a problem with updating. Attempts to update hangs on waiting for headers @ 99% but ultimately times out. I have not been able to update successfully for some time. Add to this the fact that DeVeDe will not respond. Trying to run DeVeDe from the Applications menu does nothing, running the program from the command line does nothing. Attempts to uninstall return this warning:

Code:

dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
devede

Attempts to start Synaptic return this:

Code:

E: The package devede needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

View 1 Replies View Related

Ubuntu :: Emulate Win + Left And Win + Right Windows 7 Behavior

Oct 11, 2010

These are 2 cool shortcuts in Windows 7:

[Windows+Left] - Dock window to the left side
[Windows+Right] - Dock window to the right side

When you press Windows + left arrow the active window occupies 50% of the screen (on the left), and when you press Windows + right arrow the active window occupies 50% of the screen on the right. I have tried to set this up with gnome on Ubuntu but have't managed it so far. I am sure this can be setup in gnome. How can it be done? In summary this splits two windows on the screen so one window occupies 50% of screen on left and the other on the right, how can this be setup and executed pronto on ubuntu?

View 7 Replies View Related

Ubuntu :: Change Behavior Of XF86AudioLowerVolume And XF86AudioRaiseVolume

Nov 18, 2010

I recently installed a new ubuntu system (10.10) as media center. I am running Gnome and xbmc on it. Until here, everything perfect!

I bought one of those cheapass media center keyboards with multimediakeys. Except for one, they all work out of the box.

My problem: When i press the volume down key, gnome lowers the volume of my mediacenter. This might be good for most users, but i have a surround receiver/amplifier (Denon AVR3310) that should handle the sound.

In fact, i am looking for this: When i press the volume up/down key, instead of changing the volume of my mediacenter, gnome should execute a script i wrote. This script sends commands to my receiver (using the serial port or the network connection) to lower/raise the volume.

Small additional question: I would like to get the one button that doesn't work yet to work. I have a 'mc' (mediacenter) button on my keyboard. I would like to make this launch xbmc. When running 'xev', i don't see any output when i press the button.

View 4 Replies View Related

Ubuntu :: XSANE Different Behavior And Resizing Of Output?

Feb 18, 2011

I have used XSANE for scanning for several years, and it has recently been giving me trouble. It resizes when I copy, and it resizes when I scan into a multipage pdf. It's not drastic, an 8.5 x 11 page gets shrunk down to about 7.5 x 10. I've installed the Gnome scanning utility to get by, but the resolution just isn't as great. I went into Synaptic and marked all the XSane packages for reinstallation and reinstalled them. However, my contrast / gamma settings remained the same, and, as you might guess, whatever is shrinking my output remained the same also.

View 1 Replies View Related

Ubuntu :: Window Behavior Changes When Adding Third Monitor

Feb 26, 2011

When I run my dual monitors with twinview on an NVidia GeForce 8400GS when I maximize a window it does it as you would expect (on one monitor) and when a pop up comes out of an application or when I bring up Synapse it appears in the center of my monitor. However, when I add a third monitor as a separate X window, the behavior of the windows on my dual screens becomes very different. It maximizes across both monitors, and Synapse opens with the center between the two monitors.Any thoughts on how to fix this or why it would change?

View 2 Replies View Related

Ubuntu :: Unity - Odd Behavior When Switching Windows

May 24, 2011

I have an odd behavior where the Unity shell looks incorrect when switching windows with 3D cover-flow like behavior. I created a video to demonstrate:

[URL]

When I run unity_support_test, all appears well:

$ /usr/lib/nux/unity_support_test -p
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 3200 Graphics

[code]....

View 3 Replies View Related

Ubuntu :: Overriding Default Behavior In Unity?

Jun 14, 2011

I constantly work on several workspaces, and whenever I open an internet browser or anything, I'd like a new instance of the program to open. The default behavior takes me to the workspace that currently has an open browser, and this page is usually already very crowded. Can I override this default behavior on Unity?

View 3 Replies View Related

Ubuntu :: Nautilus And USB Drive Weird Behavior

Jul 14, 2011

I am running Ubuntu 11.04 (Natty) with Gnome Classic (no effects) desktop. I have an external USB drive on which I have cloned my sda drive that contains my Ubuntu partition and an XP partition. Both of these partitions mount automatically. For some reason, Nautilus opens randomly on its own for each of these partitions. When this happens, two copies of Nautilus open; one for each of the partitions. I have not been able to discern any pattern for when nautilus opens. This actually began to happen in Maverick shortly before I upgraded to Natty. Any ideas on what the cause is and how I can stop this from happening?

View 4 Replies View Related

Ubuntu / Apple :: Overriding Rm's Default Behavior

Jul 16, 2011

Within the last few weeks, I've been beginning to familiarize myself with Terminal. I know within the syntax, you can add options such as -i or -v.When I enter the command rm, I want Terminal to automatically go interactive (which would be the -i option) without me having to add it to the command. Meaning, I'd rather type rm Test.doc than having to include -i like this rm -i Test.doc. This way, whenever I execute the rm command, I won't have to worry about adding the -i option because I know that Terminal will automatically ask me if I want to delete the file or not before I do.

View 5 Replies View Related







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