Programming :: Waiting For Files To Be Formed In Script

May 6, 2010

I have a script in which I need to wait until the required files are formed. Like the files are of the form a-1, a-2, a-3 and so on. I need to wait using sleep until files named a-1 to a-n are formed and value of n is known. How can I do this..?

View 5 Replies


ADVERTISEMENT

Fedora :: Kpackagekit Keeps Waiting Forever 'Waiting For Service To Start'

Dec 23, 2009

kpackagekit keeps waiting forever "Waiting for service to start".what is this service that it is waiting for? i am running fedora 12

View 1 Replies View Related

Programming :: Watch For Keyboard Input Without Waiting In C?

Jan 25, 2011

I have a C program that may finish in seconds or weeks depending on the data. For the longer jobs I want to be able to press a key and get an intermediate result printed.

View 14 Replies View Related

Programming :: Waiting For Multiple Childs - C - Waitpid?

Feb 28, 2011

I would like to fork more children and then write their return values: so far I tried:

Code:
#include <stdio.h>
#include <stdlib.h>

[code]....

View 7 Replies View Related

Ubuntu Installation :: After Waiting Copying Files It Stops?

Jun 2, 2011

After waiting copying files it stops at (I tried twice,the same command):

Code:
Jun 2 16:20:53 ubuntu kernel: [ 848.790255] [<ffffffff 9100ce20] ? kernel_thread_helper+0x0/0x10

When I first uninstalled it (about a month ago) I have the Ubuntu at reboot but when I run it says something about a file etc etc...

First time worked but the internet connection didn't work.

View 2 Replies View Related

Programming :: Close A Socket And Refuse Waiting Connections?

Jan 4, 2010

i've written a socket server. when i launch a client, it connects to servers running on various machines on my local network, which then reply to the client with some string messages, and the client exits.

however, when i launch the client repeatedly (say 5 or 6 times in quick succession) the client is unable to bind to its local port. this appears to be because servers are still trying to connect to the client machine's port, even though the client exited and shut the socket down. the actual error i receive is "Error binding socket to 192.168.1.6:44561: Address already in use".

so, is it enough just to shutdown and close a socket? is there some way that in doing so the client machine can send a CONNECTION_REFUSED message to any machine trying to connect to it? i am using PHP, not that that should make much of a difference i hope.

the problem resolves itself after around 20 seconds as the machines trying to connect to the client timeout. i still need to fix this issue though.

View 2 Replies View Related

Programming :: Waiting For File To Copy Before Continuing Processing (Python)

Mar 25, 2010

I have a Python script that copies a couple of DLL's and EXE to a directory before running the EXE. It can be a fresh copy or the files can already be in the target directory and are then overwritten. The script uses shutil.copy() to copy the files and that works but as the files are copying processing continues and the script tries to run the files mid copy, causing an error.

I need a way to wait for the files to finish copying before the script continues. Putting the thread to sleep isn't good enough, calling os.system("copy ...") also doesn't work, using os.path.exist() won't work because the file will exist during the copy.

View 2 Replies View Related

Ubuntu :: Hardware / Setup - ML Parsing Error: Not Well-formed

Jan 23, 2010

I am new to Ubuntu linux and recently installed it on my computer. I did a system scan and this is what it said, ML Parsing Error: not well-formed Location: file:///media/Cruzer/submission.xml Line Number 4807, Column 53: Checking for hardware/setup problems... [#[33mWARN] What exactly does this mean and what is a possible solution

View 2 Replies View Related

General :: Improperly Formed Account Name When Adding SUSE 10 To Windows Domain?

Apr 12, 2010

I have a SUSE 10 SP 2 server that needs to get added to a Windows Active Directory domain and registered in DNS. Samba is 3.0.28-0.5. I tried to join the domain with the following command:

[Code]...

View 2 Replies View Related

Server :: Error - Failed To Join Domain: Improperly Formed Account Name

Apr 7, 2010

I would like to join SLES server to Microsoft Server 2008 Active Directory to enable domain authentication when accessing samba shares. When I run

Code:

net ads join -U administrator

I get the following error

Code:

"Failed to join domain: Improperly formed account name."

I tried the same samba configuration on another server (OpenSuse 11.2) without any problem, so I think it is somehow connected with the Samba version, but I'm not sure. Has anybody experienced this behaviour?

Code:

kinit administrator@MYDOMAIN

the package versions on SLES 10 SP2 (x86_64) are following

Code:

samba-3.0.28-0.5
samba-client-3.0.28-0.5
krb5-1.4.3-19.34
krb5-32bit-1.4.3-19.34

[code]....

View 4 Replies View Related

Ubuntu :: 10.10: Namoroka: "XML Parsing Error: Not Well Formed"

Dec 14, 2010

I'm getting this error (uniquely when trying to access Auctiva-managed pages in eBay):

Code:
XML Parsing Error: not well-formed

[URL]

[Code]....

(To be accurate: the arrow is pointing to the second & in '&&' in the error message as presented. I don't know how to reproduce that precisely).

I assume this is because I have replaced the Ubuntu build Firefox with Namoroka? I did this because there was a recent announcement of security fixes in FF 3.6.13 which didn't seem to be in the Ubuntu version.

Should I revert to the Ubuntu version to get around the problem? If so, what commands do I need to issues to completely remove Namoroka and replace it with Ubuntu firefox?

View 2 Replies View Related

Programming :: Command For Find/Replace In Text Files (inc. Files In Sub-folders)?

Oct 11, 2010

I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.

Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'

The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.

View 1 Replies View Related

Programming :: Sort Files In Directories Based On Files Date

Sep 8, 2009

I need a script that will take all the files in a given directory and create new monthly sub-directories and sort all the files based on the creation date into the appropriate directory.For example, all files created between 01/01/09 and 01/31/09 will be placed in 'JAN-2009'

View 5 Replies View Related

Programming :: Convert RTF Files To MS Word Files Using Java?

Sep 19, 2010

In my application I came across a new requirement where I have to convert RTF files to Word and PDF formatted files. I am searching for an API using which my java application can able to convert the above specified formats.

View 4 Replies View Related

Programming :: Bash Programming - Rename Files In A Loop?

Mar 31, 2011

I need to rename the resulted searched files from a loopI have the following code:

find . -name DOC* | while read i
do
find $i -type f -name '*.txt'
done

basically, I am searching for all txt files inside any folder starting with DOC name.this code is working fine with me.I need to rename those .txt files to .txtOLDOS: Ubuntu 10.4Bash shell

View 10 Replies View Related

Programming :: C Header Files And Object Files ?

Sep 18, 2010

When is it good to use separate translation units and object files and link them into the main C program, and when is it good to include the header files in the main C program? I don't understand if most people include header files or if most people just link in object files and use their contents in the main program. It's sort of a simple question, but it's confusing to me and that's why I need help with it. I sort of don't understand the difference, or if there's really no difference other than the way the final result is achieved, which way is better or preferred, etc...

For example:

Code:

or:

Code:

Simple explanation of the difference? or which one is preferred or better? I've read a little on the ELF format... so is there no difference in the end result? It's just a matter of preference or necessity, and where the information is to begin with?

View 9 Replies View Related

Programming :: Create Inverted Files To Associate Files To Numbers ( Numbers Being The Index Of My Paths )?

Apr 4, 2011

am writing a small search program for my class. I have decided to use indexing for my program. Ive researched online about indexing and how search engines do it. If im gonno do that I need to create inverted files to associate files to numbers ( numbers being the index of my paths ) . Now I was wondering what would be the best way to create an inverted file ? I was going to create sql tables using mysql api in C but then again there is no array data type or vectors to store few numbers in a single column in mysql and it is not advised to use Enum or SET

View 14 Replies View Related

Software :: Waiting For Other Tasks

May 26, 2010

for the past several months now, whenever the YUM-deamon goes to automatically update, it just says "waiting for other tasks" and after about 10 min it says "can't get yum lock, other program accessing yum" or something to that effect.i get the same message if i try to manually install programs using the graphical program in gNu.

is there another deamon that also could be using yum or the database for programs? i haven't had too much time to trouble shoot the past few months, so i can't give you better descriptions i'm afraid.

View 2 Replies View Related

Programming :: Search The String "Listen" In A Few Files (config Files)?

May 9, 2011

I'm trying to search the string "Listen" in a few files (config files). I madefind /apps/apache* -exec grep -H Listen {} ;but the result list is very long. How i make a "grep -v" whith this command?

View 3 Replies View Related

Debian :: Apt Stuck In Waiting For Headers 0%

Oct 24, 2015

I have the problem of app stalling at 0% when trying to update. I ran apt with the debug option

apt-get -o Debug::Acquire::http=true update

And I get the following:

Code:
Select all0% [Trabajando]GET http://security.debian.org/dists/wheezy/updates/Release.gpg HTTP/1.1
Host: security.debian.org
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (0.9.7.9)

GET http://ftp.mx.debian.org/debian/dists/wheezy/Release.gpg HTTP/1.1
Host: ftp.mx.debian.org
Cache-Control: max-age=0
User-Agent: Debian APT-HTTP/1.3 (0.9.7.9)

After a while trying to update, it trows out this error:

Code:
Select allIgn http://ftp.mx.debian.org wheezy-updates/non-free Translation-en
W: Imposible obtener http://security.debian.org/dists/wheezy/updates/main/binary-amd64/Packages  503  DNS error for hostname security.debian.org: Name or service not known. If security.debian.org refers to a configured cache repository, please check the corresponding configuration file.

[Code] ....

I have tried changing repos, also i have verified with iceweasel the availability of the repo.

Ihave changed aldo the network setting from dhcpd to static.

I am using Debian wheezy, gnome desktop enviroment, although the DE is irrelevant.

My conections details:

Code:
Select all
eth0      Link encap:Ethernet  HWaddr 50:46:5d:b2:1b:2a 
          inet addr:192.168.2.14  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::5246:5dff:feb2:1b2a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:376446 errors:0 dropped:0 overruns:0 frame:0

[Code] .....

View 1 Replies View Related

Fedora :: Kpackagekit Waiting For Other Tasks

Oct 3, 2010

Whenever I try to get KPackageKit to do anything, it says "Waiting for other tasks..." and just hangs. I can cancel (when there's a cancel button, but sometimes there's not) and yum runs just fine.Any advice on how to get this working? I hate hunting for the names of packages.

View 2 Replies View Related

Ubuntu :: Apt-get Hangs At Waiting For Headers

Jan 25, 2011

For two days I've been trying to update and install packages on a Lucid 64-bit system. It's a fresh install and I've never had any problems with any apt-get commands before in the two years during which I've installed Ubuntu on everything I own. It just hangs at 0% [Waiting for Headers]. I can provide more information if needed.

I suspect his may have something to do with it: (copied from terminal output)

Err [URL]

My sources.list:

# deb cdrom:[Ubuntu 10.04.1 LTS _Lucid Lynx_ - Release amd64 (20100816.1)]/ lucid main restricted
deb-src http://archive.ubuntu.com/ubuntu lucid main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

[Code].....

View 3 Replies View Related

Fedora Installation :: Waiting For Hardware To Initialize?

Jun 19, 2009

I was trying to intall Fedora-11-x86_64-DVD. But during intallation a line shows "waiting for hardware to initalize... " & then stops processing. I waited for 1 hour but nothing happens. What should I do? How to install fedora on my system...
Pentium D 2.8Ghz
1gb ram

View 2 Replies View Related

Fedora Installation :: F11 - Waiting Hardware To Initialize

Oct 24, 2009

I want to install fedora 11 on my pc, earlier I had fedora 7. But while installing fedora 11, its stopping at the point telling: Waiting hardware to initialize and its getting stuck there.

I have :
- Pentium D 2.8 GHz processor
- 512 MB RAM

View 1 Replies View Related

Fedora :: KPackageKit - Waiting For Service To Start?

Aug 6, 2010

I have a couple of problems - and am new to Fedora which, up until about three days ago, was flawless.Am using KDE on F13. (Gnome & LXDE are also installed.)First problem is easy to solve, I think. How do I prevent "inactive" windows from fading out? It's an incredibly inconvenient feature and utterly defeats the whole purpose of the "Always on Top" option! I can't seem to find the option anywhere?On to KPackageKit. It has been trying to update KDE for the last three days but always gets hung up with the message: "Waiting for Service to Start."I notice that this problem might be listed as a Bug? - but not entirely sure.Is there a straightforward solution to this or is it, in fact, a bug?It also wants me to repeatedly restart because a new Kernel 2.6.33.5-124.fc13 has supposedly been installed.

View 7 Replies View Related

General :: Grub Waiting For Input Ubuntu 11.04?

Jun 8, 2011

I installed Ubuntu 11.04 fine, but Grub is waiting for Enter..? Why?

/etc/default/grub
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true

[Code]....

View 1 Replies View Related

Ubuntu Installation :: Trying To Do Update And Getting 'apt-get Waiting To Exit'

May 2, 2011

trying to do an update and getting "apt-get waiting to exit" is there any fix for this?

View 1 Replies View Related

Ubuntu :: Waiting Indefinitely At Grub Screen

Jul 19, 2011

I have several servers running Ubuntu Desktop. These servers are remote access only and do not have a monitor or keyboard attached normally. I'm running into problems with them occasionally getting hung up, after crashing, on the grub recovery mode screen. The only way for me to make them boot up is to hook up a keyboard and hit enter.

My /etc/default/grub file is default:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

What do I need to change to disable the grub loader screen from coming up automatically ever, or at least to make the timeout work when it does happen?

View 3 Replies View Related

Debian :: Waiting For Root - Cannot Mount Volume

Jun 23, 2010

Not sure how this came about but the box rebooted itself for some reason and refused to get past this stage. I went into grub and changed hde1 to hda1 but that did nothing. The disk is unreadable by another Debian box, it gives the error "Cannot mount volume". Also unreadable in Windows via programs such as ext2toifs or Linux Reader.

If I boot via the CD and bring up the recovery console I can browse to my data, seems all intact but cant mount a network share to move it off, also tried making a .tar of all my stuff and FTPd' it across but I only received a massive corrupted file. How to get my stuff of this drive or ideally make it boot?

View 3 Replies View Related

General :: Waiting For Install - Dots Loading

Apr 1, 2011

Today, I turn on my computer, and put a CD, as then I click the install, then waiting like Dot dot loading, what's does mean?

View 14 Replies View Related







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