General :: Script Execution Failed - Input String Was Not In A Correct Format

May 2, 2011

I have here a Network Monitoring tool that should monitor the Apache (httpd) 2.0 on CentOS 4.3, but I didnt have any background in using linux, I tried CentOS 5.5 with Apache (httpd)2.2 and it works, but whenever I tried it on Centos 4.3, it doesnt work at all, it has an error Testing on node localhost.localdomain: failed with Undefined status, Script execution failed. Input string was not in a correct format.

View 10 Replies


ADVERTISEMENT

General :: Input Any UTF-8 String As If Typed On Keyboard From Console In Xorg?

Oct 6, 2010

Like in xte "str ў", but with support of all characters.

View 1 Replies View Related

General :: Converting A String To An Shadow Password Format

Apr 15, 2010

I need to manually convert an string ( like with echo ) to a DES crypt format to be inserted inside a /etc/shadow file, does anybody knows how can I do that?

Maybe there are some little tool that could handle that operation, well.. I don't know, hope someone can give me a hint on that.

View 3 Replies View Related

Debian :: Starting Deferred Execution Scheduler: Atd Failed

Mar 20, 2011

When I boot , I find a line: starting deferred execution scheduler: atd failed. How to do with it? I use Debian 6.

View 1 Replies View Related

Programming :: Format Int 1 To String 0001 In C++?

Feb 16, 2011

In C++ as subjected, can anyone throw me some light on how I can generic-ly format an integer value of 1 to a string value of 0001? 11 to 0011? and 111 to 0111? simply by just appending 0 in front and limiting the length of the string to 4?

View 4 Replies View Related

Programming :: Input String Into Array Without Using Quotation Marks

Oct 11, 2010

I want to put a string, such as the one found in the image, into an array that will later be chopped into individual words and put into another array of individual words found in the initial string. (or, perhaps, I would be able to do that initially, but for now, that is the goal)My question is, how can I do that without using quotation marks?

View 5 Replies View Related

Programming :: String Format - Create A Text File ?

Feb 3, 2010

I am using C. I have a fuction that returns a string

Code:

I need to format this string so that I can create a text file like so:

So I'm trying:

Code:

But I get errors like:

View 2 Replies View Related

Ubuntu :: Program To Download Picture Files In Raw Format From Nikon D3000 And Correct Them?

Apr 27, 2010

Can anyone tell me what is the best program on Ubuntu that will download picture files in Raw format from my Nikon D3000 and correct them, and do the usual stuff to make a colour-balanced, photo that can be saved in another format - say Tiff?

View 4 Replies View Related

Ubuntu :: Format Not A String Literal Compiling WxGTK-2.4.2 From Source

Sep 20, 2010

trying to compile and install wxGTK-2.4.2,i configure with the line-./configure --with-gtk --enable-gtk2 --enable-unicode but when i go to make and make install i get the format not a string literal error, how can I fix this? really need wxGTK2.4 for some old apps.

View 1 Replies View Related

Programming :: Fortan Error - Nonnegative Width Required In Format String At - 1

Jun 10, 2010

I'm in the process of debugging and compiling about sixty FORTRAN 95 programs and could use a little bit of your help before my brain is fried and fingers are cramped. Thanks for your time!

I receive the following errors:

Here is my code:

View 5 Replies View Related

Ubuntu Servers :: Remove The Leading Number And Slash If The Input File Is In The New Format?

Sep 10, 2010

I'm thinking of a few ways to do this I'm curious how many better/equal ways there are to do the same task.in a file with format like: 20 text Gi0/2 some other junk I have it reformatted to look like this before going in a database: 0/2 20 text. But for whatever reason some of the new input text looks like this now: 20 text Gi1/0/2 some other junk

My script makes it look like this: 1/0/2 20 text. I want it to remove the leading number and slash if the input file is in the new format.

View 5 Replies View Related

Programming :: Copy String A To String B And Change String B With Toupper() And Count The Chars?

Oct 22, 2010

copy string a to string b and change string b with toupper() and count the chars

View 3 Replies View Related

General :: Replace String With Empty String Of Dir Path ?

Apr 2, 2011

I want to replace a string of directory path in a string to empty:

Code:

But this doesnt seem to give me the desired thing:

Code:

This gives the desired outcome, but its specific, i need a variable in the sed not a string. And if I replace STRING="/mnt/sda1/record/$dd/" then I cant use it for something else, cause its has all the weird backslashes now.

View 3 Replies View Related

General :: Extract A String Within A String Using A Pattern?

Nov 4, 2010

i have a file name using the following pattern:

PREFIX: AR
SOURCE: LEGACY
DATETIME: YYYYMMDD_HH24MISS
SUFFIX: .txt

sample filename:AR_LEGACY_20101104_105500.txti want to extract the source which is LEGACY in this case. how do i do this using shell?

View 1 Replies View Related

Ubuntu Installation :: Grub And 9.04 - Error "invalid Command" Or "invalid Execution Format"

Aug 16, 2011

Bottom Line: Dvd Drive died in my toshiba laptop and it was replaced (not before tech for some reason reformatted the Win7 partition... which was 100% un-needed, but thats beside the point now. I redid win7 (the tech installed vista) and am TRYING to "redo grub". Facts: The Slackware AND Ubuntu Partitions ARE STILL THERE and when i use SuperGrub Boot CD (which doesn't restore my grub by itself) to boot into slackware, i can see ALL THE CONTENT of both Linuxes still there including grub on ubuntu partition

(Tri-Boot: Ubuntu, Slackware, and WIn7) I had it working for two years or so, SO i know this "setup" works fine. I am A) Trying to do this as simply as possible. B) Trying to avoid the need to download a 800MB ISO (as seen for this issue on this forum) and trying not to have to reformat Ubuntu Partition (though I have the .Debs I have downloaded for it backed up ... all 1.7GB of them) I have /dev/sda1 as win7, /dev/sda2 as Slack and /dev/sda3 as Ubuntu (which contains Grub Legacy).. Every command I do seems to result in an error like "invalid command" or "invalid Execution format " (i think that second one is right) type errors. I compiled (awhile back) a few kernels for Slackware, but feel goofy that I cant figure what i this out (what i thought was going to be a "2 minute" fix)

View 4 Replies View Related

Software :: Set A Size String Format To Show That In Megabytes + "MB"?

May 13, 2011

How to set a size string format so that it will show size in megabytes + "MB"?
For example not code...

View 1 Replies View Related

Ubuntu Multimedia :: Brasero Failed To Copy DVD With Input / Output Error

Jul 9, 2010

Working on backing up my DVD library. Anyone know why Brasero would fail to copy data due to an input/output error? Movie was Toy Story 2, disc 1.

View 6 Replies View Related

Red Hat / Fedora :: Updated 10 App No Longer Runs :Failed To Create XIM Input Context

May 14, 2009

I ran "yum update" and updated my new installation. Afterwards: my main application stopped running. It iis an xwindow app. I am trying to run it from a terminal on the gnome desktop. How can I back out my updates and which packages should I try to remove?

Controller screen Buffer depth 1
void PSLr: :resize (int size): 661
QPixmap: Invalid pixmap parameters
auxillary display font size: 8

[code]....

View 1 Replies View Related

General :: Awk Gsub() Command - String (column) Manipulation - Replace The Value Of The $1 Column In The Awk Print String?

Mar 7, 2010

i use this script to get the time and date of back and fourth transactions for a particular execution id. I use a substr command on the 5th column to to cut the milli seconds off the time value. - otherwise the times would look like 08:30:04.235

grep <executionID> <auditfile> | awk '{ print $1, $2, $3, $4, substr($5,1,8}
FIX -> Mon 3/1/2010 08:30:04
FIX <- Mon 3/1/2010 08:32:36
FIX <- Mon 3/1/2010 08:35:08

[code].....

anyhow - i append two sed commands to further clarify the direction of the message.

awk '{ print $1, $2, $3, $4, substr($5,1,8} | sed -e 's/->/ ->IN/g' | sed -e 's/<-/<-OUT/g'
FIX -> IN Mon 3/1/2010 08:30:04
FIX <- OUT Mon 3/1/2010 08:32:36

[code]....

I tried using an awk gsub () command within the string instead of the two seds, but it did not work:

awk '{ print gsub(/<regex>/, <replace with>,$1), $2, $3, $4, substr($5,1,8}

the sed works ok, but it would be cooler to make the replacement within the awk command:

gsub(/->/,-> IN, $1)

Is there a way where i could replace the value of the $1 column in the awk print string?

View 1 Replies View Related

Software :: Insmod Failed With Invalid Module Format 1

Jun 22, 2011

With hello kernel module, i use two types of Makefile, one is using kernel build system:

obj-m += hello.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

module loads successfully; another is using (CC) and then creating the module by "make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules", this module gives the error message when it is inserted, .........

View 5 Replies View Related

Software :: Attempt To Format The Floppy Disk In /dev/fd0 Has Failed

Jan 9, 2011

When I try 'makebootdisk' and get to the 'format' stage, it tells me: "The attempt to format the floppy disk in /dev/fd0 has failed ..." The disk is fine, and can be read from, but the above msg. shows up instantly -- the light on the drive doesn't even come on. I'd expect this to be a routine problem but I can't find any solutions either here or on the web.

View 2 Replies View Related

General :: Simple Script To Convert Datetime Format To UTC Format?

Oct 9, 2009

just wondering is there a simple script to convert datetime to UTC format. I have been searching different forums but most answers are for converting UTC to datetime. For example what is a simple command/script to convert todays datetime to UTC format i.e. '2009-10-09 11:47:59'.

View 10 Replies View Related

Fedora :: On Boot: Mdadm Failed To Start Raid: Input/Output Error?

Jul 31, 2010

I have a strange issue with my RAID5 array - it worked fine for a month, a couple days ago it didn't start on boot with mdadm reporting "Input/Output error" - I didn't panic restarted my computer, same error. Then opened a Disk utility and it reported State: Not running, partially assembled - don't know why, I've pressed Stop RAID Array and started it again, voila - it reported State: Running - I've checked components list and there was nothing wrong with it. So I run Check Array utility, waited almost 3 hours to finish it and it worked since than, till today's morning - I've started my computer, and here we go, same error.

See screenshots:

This is an initial state just after computer startup:

This is after I stop and start RAID5:

This is a components list:

I can see nothing wrong there yet not sure why mdadm fails on boot. I do not really like the windows solution I guess, when I check my array again, it will work fine again, but it then can fail in the same way without known reason.

View 3 Replies View Related

Ubuntu :: 10.10 Bootup - Filesystem.squashfs Failed Input / Output Error Cannot Mount

May 24, 2011

i want to use linux but i am having some issues getting it to work on my system. my desktop is a p4 3.4gig with 512 DDR. When I insert my ubuntu CD it starts loading but then i get this screen/message:

Busybox v1.15.3(ubuntu 1:1.15.3-1ubuntu5) built-in shell(ash) Enter 'help' for list of built in commands (initramfs) mount:mounting/dev/loop0 on// filesystem.squashfs failed input/output error Can not mount /dev/loop0 (/cdrom/casper/filesystem/squashfs) on //filesystem.squashfs if I put the same disc into my HP laptop it boots up ubuntu fine. (however it won't allow me to get online, but that is a different issue).

View 3 Replies View Related

General :: String Replace In Filenames - Files Already Contain The String "Soundtrack"

Jun 11, 2011

Moving right along, I have a folder of MP3 files containing various Movie sound tracks and scores. I'm using Audio Tag Tool to tag all the files at once with an "Artist" of "Soundtrack", and to inherit the "Title" tag from the file name. After that, I will rename all the files (Using Audio Tag Tool -- awesome program, btw) with the format "<Artist> - <Title>.mp3"

The problem, is many of my files already contain the string "Soundtrack", which would be redundant. I happen to be a perfectionist, so I'm unable to ignore it and move on. Hence my question to you fine folk: I want to delete all instances of "soundtrack" (-i case irrelevant) in the filenames before I go through the above steps. But, its not quite that simple. This is a sample of some of the file names:

[Code]....

View 3 Replies View Related

Slackware :: Starting KTTSD Failed - How To Set Clock To 12 Hour Format

Aug 5, 2010

If I set the clock to speak the time, I get this when it tries: starting kttsd failed. I've looked at the various posts, but haven't yet found an actual solution. I've tried to run kttsmgr, but for some reason the "run" dialog doesn't seem to do anything - no error, nothing. Type kttsmgr, press enter since there is not obvious other way to execute the command, and nothing happens.

Is this a module that does not come with KDE? And I give - I can't find time format anywhere. How do you change the clock that appears in the lower right corner to 12 hour instead of what appears to be default 24 hour? I don't see it in "Digital Clock Settings", and I don't see it in System Settings - Date & Time. This is a clean install of slackware 13.1, and whatever version of KDE comes with it.

View 3 Replies View Related

General :: Format A USB Hard Drive To Vfat Format But Can't?

Sep 15, 2010

I need some assistance in trying to format a USB hard drive to vfat format but can't seem to do so. I am currently using RHEL 5.3. I have tried the following commands and they all come back as "command not found"

mke2fs vfat /dev/sc1
fdisk vfat /dev/sdc1
mkfs.vfat /dev/sdc1

What am I doing incorrectly?? Can someone please point me in the right direction??

View 6 Replies View Related

General :: Set The SGE Job Execution Order?

Jun 22, 2010

I am trying to write a script to set the SGE job execution order. I named each job with 'job1', 'job2' and 'job3'. I want my script to do: When 'job1' execution is complete, 'job2' is executed; when both 'job1' and 'job2' are complete, 'job3' is executed.

First, I tried this following script and it worked well:

########
qsub -N job1 run1.sh # run1.sh includes "mv file_name1 file_name2"
qsub -N job2 -hold_jid job1 run2.sh # run2.sh includes "mv file_name2
file_name3"
########

[Code]....

View 7 Replies View Related

General :: Execution Time In A C Program ?

Jan 10, 2010

I need to find out the processing or operating time in milliseconds or in nanoseconds for the instructions or for the whole process!

for eg :

I need to calculate the time taken to execute :

And i dont want the time for whole program :

View 4 Replies View Related

General :: Repeating The Command After One Execution?

Oct 13, 2010

I have seen command like $rm aa dd cc bb ee then something like $ >> zz // it removes zz also Where aa dd cc bb ee zz are the files in my directory. Do not know exactly.

View 6 Replies View Related







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