Programming :: Script To Sync Producer Consumer Application?
Jun 8, 2010
I have a producer and consumer application, each can take parameter and run for 10 minutes.
I want to write a script that allow me to pass in different paramters and save the results for later. However, I cannot come up with a write script.
My scenario is that the consumer has to start first always. Once the first set of parameter finish. the producer will not start until the consumer for the next parameter set starts I am thinking something like this
Consumer:
for ($i=1;$i<10;$i++)
startconsumer.sh -interval $i
sleep 1
end
Producer:
for ($i=1;$i<10;$i++)
startproducer.sh -interval $i
# wait till consumer is done
sleep 1;
end
I am trying to go with an approach that checking if the consumer/producer finish by checking a log file, but it does not seem to work.
View 2 Replies
ADVERTISEMENT
May 13, 2011
i would like to set up a gpu computer for single-precision calculations (molecular dynamics) that may last many days. Thus, consumer components may be OK, though of high quality.it should be based on two/four GTX-470. ram requirements very modest: a few GB.OS must be GPU-Linux 64 bit (i am familiar with debian amd64). Software raid 1.I would appreciate advice on suitable motherboard, cpus, power source and cage for large-diameter propellers.
View 12 Replies
View Related
Jun 21, 2010
I am currently running a old school hacked Linksys WRT54G and have played around with some of the hacks and currently running Tomato on it and I am pretty happy (tho the lack of OpenVPN Server suck) but I need an upgrade to something with 802.11N and I bet I am not the only one. The options right now are
Grab a hackable consumer 802.11 Dual Band-N router and throw on it DD-WRT, OpenWRT or Tomato again Build my own using old hardware (dont really want to, feel they eat too much power for a simple task) Build/Buy hardware for a custom router (Atom system, or I recall back in the day some people use to sell small ATX-like boards just for embedded linux to run as a router) So what option would you go with and why? And if the DIY route should I try to get some hardware that is pre made for the job or DYI like a Atom machine.
View 2 Replies
View Related
Sep 28, 2010
How to sync audio and video which is captured from a aeperate camera device and a microphone,how to relate timestamps to audio and video to syncing.I m capturinfg video at 30fps and audio 160 samples everytime so how these 2 should be related to sync and playback at a time
View 1 Replies
View Related
Oct 24, 2010
I use jpilot on opensuse 11.3 64bit to sync pim data with my Palm Treo 680 via bluetooth. This worked fine until today. Now I get the following error message when I try to sync: Syncing on device bt: Press the HotSync button now dlp_ReadSysInfo error Exiting with status YNC_ERROR_PI_CONNECT Finished.
The last successfull sync was on the 20th October and today is the 24th October. I did not change any settings in jpilot or on my palm device. So I guess there must have been an update of opensuse which causes this error. But I do not now how to look up the updates during this period or how to undo them. Was there an update between the 20th and the 24th Oktober, which might affect either jpilot or bluetooth functionality?
View 1 Replies
View Related
Sep 19, 2011
I've discovered Firefox Sync a while ago, and it's absolutely awesome. Now of course I'd like most of my software to work this way! So is there a way to get the same behavior with Thunderbird?
View 1 Replies
View Related
Sep 10, 2010
I've got Ubuntu One syncing a single 25MB folder on 4 computers. On one of these computers, the ubuntuone-syncdaemon process constantly pegs the CPU, using from 50-80% long after any sync-able files have been modified and successfully synced. The process is only using 8.9MB of RAM.
Specs:
Ubuntu 10.04 (lucid)
Kernel 2.6.32-24-generic
1000.8 MB RAM
Pentium 4 2.53GHz
Free disk space: 280.9 GB
System monitor shows 56.8% total RAM usage, 15.4% swap file usage.
View 3 Replies
View Related
Jul 9, 2011
Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. -async 1 is a special case where only the start of the audio stream is corrected without any later correction.Searching the net makes one believe that this command is just some sort of magic.People just put it in the line and it just works. Isn't that nice?
It says nothing about how to change the TIME the audio starts syncing. Like do I want it to start 5 seconds delayed? Or what about 5 seconds sooner?What if the audio gets more out of sync as the video goes on? Can I slip it a little at a time? What? No magic?No one mentions a file that already has badly synced audio.So what -async 1 really does is simply start the audio at the beginning of the file. LIKE AS IF THAT ISN'T STANDARD PROCEDURE?So what is the exact solution to syncing a messed up video? And why can't it just do the proper "timestamp" sync in the first place?No docs, no info and you are left out in the cold.
View 4 Replies
View Related
Jun 3, 2010
It seems that selinux has stop weav to sync the bookmarks.I followed the fix code as SELinux suggested,but it can't work.Does anyone know how to solve it?
View 3 Replies
View Related
Sep 29, 2010
I want to ask whether there is an application to program the AVR on Linux. if there is what the name of his application? and where I can get it
besides, I also want to install the supporting applications to make PCBs, in windows I used mangunakan Altium.
if for linux what is the name of his application?
View 1 Replies
View Related
May 5, 2010
I'm extracting data from a xml file writing it to separate files then combining the results as a csv file.The problem is keeping the separate files in sync line by line.When a grep does not action I would like to put in a blank line or something to keep the lines in order.When the "<title>" is missing as in as in the first"<programme </programme>" that's where I need somethingto write to the file as dummy data to increment the line
here's the data
Code:
<programme channel="15552.dvb.guide" start="20100504200000" stop="20100504204000">
<category>Show / Game Show</category>
</programme>
<programme channel="14498.dvb.guide" start="20100504200000" stop="20100504203000">
[code]....
View 14 Replies
View Related
Jan 3, 2009
I'm trying to package a Qt application using debuild. However, I can't figure out how to make qmake generate a correct Makefile.
The main problem is that the binary doesn't get put into ./usr/bin inside the .deb.
So dh_shlibdeps always fails and I get the following:
Code: Select alldpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
The resulting debian package then has an empty "depends" field and no binary.
I used the Qt Hello World example application to start.
I changed debian/rules (generated by dh_make) so that it runs qmake as follows:
Code: Select all#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
[code]....
View 6 Replies
View Related
May 13, 2010
am using a PC104 with Linux and i need to control it with a controller that is connected via RS-232 or USB port. I need to launch one or more application some specific message come through RS-232 port. Is that doable? If yes how? I am beginner with C++ on Linux so i don't really know specif libraries. If possible i would like to use pure C and not C++.
View 4 Replies
View Related
Aug 1, 2010
I want to write an application with an interface similar to those used in non-GUI linux installation programs. It is not really a pseudo-graphic. Does anybody knows an appropriate library?
View 2 Replies
View Related
Aug 23, 2010
i need to debug a application which is using many threads. i am using eclipse with GDB debugger but it is not possible to debug it since it has a lot of different threads and i can not not debug it as wre debug in case of single thread(main) . So i would like to know, is there a way to debug such an application, if there is some tutorial that would be nice to know.
View 8 Replies
View Related
Nov 28, 2010
I'm trying to learn how to cross-compile libraries (static and shared) and executables for the Blackfin + uClinux environment.At this point, I can successfully compile a stand-alone "Hello, world" but fail when trying to add a (static) library to the mix.Here's the source code I wrote:
Code:
#========== bar.h
void mytestfunc(void);
#========== bar.c
#include <stdio.h>
[code]...
Googling for this returns talks about "name mangling", but I don't know if this is what it is, and how to change the source/command to solve it.
View 1 Replies
View Related
May 10, 2011
My users need to run an application which was build with newer GLIBC_2.11, while my system only gets GLIBC_2.4. It shows error "cannot find libc.so.6 GLIBC_2.11" whenever I run it. I cannot upgrade the system, so I have tried building Glibc 2.11 (for example:/opt/glibc-2.11) to another directory, but when I point LD_LIBRARY_PATH to /opt/glibc-2.11, I cannot run any commands because of error invalid LFS ABI. I also tried using LD_PRELOAD, but it does not work. Please help me, how can I fix this problem.
View 3 Replies
View Related
Jun 8, 2011
I'm developping a C# app in Windows using VS2010. It has one form and communicates as a client with a server.A receive thread displays incoming data while buttons and a timer send data. All workingThe form has a button that calls the below method to disconnect from the server.
Code:
public bool disconnect()
{
[code]...
View 2 Replies
View Related
Jan 2, 2010
Is there a somewhat straightforward way to get the name or pid of the application that is under the mouse's cursor? What I'm trying to do: This is just a "what if" at this point, I would like to run some script that would obtain the name/pid of any application that the mouse cursor is on, and use xte to assign different functions to different mouse buttons. For instance, assign a given button the Forward or Back function when the cursor is on a browser, but assign a scroll-left or scroll-right to the same button when it's on a spreadsheet. Is there any way to accomplish this, say, in a script that I could run at startup as a background process?
View 4 Replies
View Related
Mar 29, 2009
I never had to use anything more than -l , -lm , -c ,-o.It was only through dev documentation that I came across glib. Now I want to to compile and link a program with glib.
View 5 Replies
View Related
Mar 30, 2009
I want read the log messages to my 'c' application , i am using the fedora core 8 operating system , how to read the system log messages(syslog) through my application.
View 3 Replies
View Related
Jul 21, 2010
i have made a small program to find the md5 checksum of a string.i am using xshell to compile the program.
Code:
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <md5.h>
[Code]...
View 4 Replies
View Related
May 5, 2009
I have developed a proprietary multithreaded application using Qt library version 4.2.1 on RHEL 4 platform. The application communicates with different external interfaces using serial communication using well defined protocols. For each system I have a thread that handles data acquisition and processing, it sets an update flag which is read by the GUI thread to update GUI after specified number of seconds. The incoming data from external systems is processed and updated on GUI at certain intervals. Each system update rate on GUI is different. Generally it is 1 second. Their rate of sending data is different and is generally 1Hz, 5 Hz and 10 Hz. For systems with string data I have no issues. But some systems send raw data and I have to process every byte of the entire packet, for which I have to use for loops. Now my problem is if I keep the update rate of GUI for such systems less than a fixed number of seconds (which I have to calculate by hit and trial) the application hangs after sometime. I have tested this system exlusively by switching of all other systems and it hangs standalone.
This leads me to conclude that timing of GUI update is what is causing the application to hang. Also I read somewhere on the net that in multithreading application timers play an important role and slight variation in timing can lead to hung applications. As of now I have kept 5 seconds as the GUI update time and app runs fine. Can somebody suggest something else which might be the cause?Note that I have used mutexes, wait conditions and all necessary tools which are used in multithreading app. But it is only the timer on which I could pin down the issue.
View 6 Replies
View Related
Jun 24, 2010
1. How to use the the font in the application? Any code example?
2. How to install the font for linux?
3. How to make the installed font as the system default font?
4. How font/text is rendered in linux? Any inforamation about the font system in linux?
View 14 Replies
View Related
Sep 11, 2009
I seed a suggesting related asychron io. I'm write a program which use completion ports, but wandor how avoiding loops like for(; below...i.e I want parse proto with count in first and then computing some quantity of pieces. how that make with aio?
Code:
View 6 Replies
View Related
Jun 19, 2011
I want to develop a system that converts speech to text in C sharp in Windows 7 platform.I haven't enough idea about this one.From google that,there will be grammerbuliding.Moreover i think,there will be a problem of spelling words correctly. from where i will start or which steps i should follow to develop the system??
View 1 Replies
View Related
Jul 7, 2010
I'm trying to write a simple, console based application in linux, in c++. I know how to start in Eclipse and I have some experience in c++ from Windoze. I would like to ask, if there is some tutorial available on writing console apps. I mean, I know from using linux that there are two conventions on using parameters in command line (-v and --version for example).
View 2 Replies
View Related
Feb 4, 2011
I just installed GNAT GPS and would like it to display under Applications->Programming drop down menu. How does one do this? I have read about creating a .desktop file but tried that and it still does not appear under the menu I like. It does appear on the desktop but not because of the .desktop file.
OS: fedora 14 63-bit
CPU: CPU AMD-64
An example file (if needed) would be nice.
Also, just as a extra, has anyone found the GNAT GPS icon (.png) file?
View 1 Replies
View Related
Aug 23, 2010
I have an application which looks in a particular directory for it's settings. For example varsetting.txt. These settings are stored in a text format and can be edited easily. I would prefer to keep this setting.txt file on a USB stick rather than the HDD for portability so that I can easily use the same settings on two linux PC's without having to redit them everytime. I have tried but cannot manipulate the application to look in a different location for this file, do you know if it is possible to "point" linux to another location when looking for the file?
View 2 Replies
View Related
Nov 2, 2010
I have an application, probably cpu-intensive because sometimes it leaves the cpu with 0% idle (in top). Sometimes it hangs ("Done" does not print) when executing this part, but most of the time it executes just fine. Is there any wrong with this code?
View 2 Replies
View Related