Programming :: Data Directory In Automake - Data Is Always Read-only ?
May 9, 2010
I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.
How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.
View 1 Replies
ADVERTISEMENT
May 9, 2010
I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.
How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.
View 3 Replies
View Related
Jun 11, 2009
I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:
//------------------------------------------------------------
char m_readBuffer[255] = {0};
char* p_curChar = m_readBuffer;
[code]...
View 1 Replies
View Related
Mar 5, 2010
I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port
Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)
[code]...
View 5 Replies
View Related
Jun 3, 2010
Ubuntu 9.10 64bit. Acer Laptop
Using ubuntu 9.10 cd to access laptops hard drive.
foun readme file in /media/disk/mark
opened with openoffice. THIS DIRECTORY HAS BEEN UNMOUNTED TO PROTECT YOUR DATA.
From the graphical desktop, click on: "Access Your Private Data"
or
From the command line, run: $ ecryptfs-mount-private
So I tried a couple of ways...
View 9 Replies
View Related
Aug 24, 2010
I need to read data from a socket but it should be always listening because data arrives continuously .. I thought something like this would do it but it doesn't work .... I already set the socket options before
Code: char databuf[1024];
int datalen = sizeof(databuf);
if(read(sd, databuf, datalen) < 0)
{
[Code]....
View 9 Replies
View Related
Nov 9, 2010
I try to use open(2) system call, and I find one relevant flag: O_NOFOLLOW. But it will only return -1 rather than the symlink's file descriptor
View 5 Replies
View Related
Aug 12, 2010
I've written a usb device driver and a program that sends and receives data over the bulk pipe. The read function sometimes returnsI'm reading an unknown amount of data. However, using a usb tracker I can see that the correct data is being sent.The error only occurs sometimes.I expect that the read function is told to read more data that it receives it would fail and return -1, however if this was the case then every read call would fail.
View 4 Replies
View Related
Aug 25, 2010
i want to try with a small application in linu in that i want to read some data from controller using serial port and i wanna transfor that data to another meachin in the network for this i want serial port interfacing programming as well as socket programming.
View 1 Replies
View Related
Oct 30, 2010
I am writing a C program which reads data over serial port. While reading data, if I send my data(which is a 13 byte structure) periodic with a period of 1 second for 10 times I read it without problem and I read the data 10 times as I sent and as I expectBut if I send data continuousuly(without any time interval between each sending) 10 times I can only read 1 of them(I can only read it once).
View 11 Replies
View Related
Jul 6, 2010
I am implementing a simple serial protocol where my ARM9 board, running Linux is communicating to a slave peripheral board. The Master sends a 12 byte data stream and the peripheral board returns status in a 23 byte response. The serial port is opened in raw mode. It works perfectly on 44 reads; however, on the 45 read the data returned from the read() is incorrect. I've framed what's being sent on an oscope and it is correct.The coincidence is that 23 x 44 = 1012. It's as though the receive buffer is 1K and when I go past the boundary I get bad data. The read following the bad one is good again.I've tried flushing the buffer before reading but get the same result.Here's the port initialization code:
Code:
int initport(int fd)
{
[code]...
View 4 Replies
View Related
Nov 6, 2010
Code: stuart@stuart:~/$cat showthread.php.html | grep -o [URL][^"< ]*" | uniq | head -n3 | plowdown - cannot stat '-': No such file or directory Code: stuart@stuart:~/$ awk NR==$x Musiclist.txt | cut -d/ -f6 | basename $1 .mp3 .mp3 Here's some system info on the bash i'm using:
[Code]...
View 13 Replies
View Related
Sep 28, 2010
I have very little linux experience. And need some help with a bash script. I need to a script I can set cron to run to sort files out of a holding folder into final folders. It doesn't necessarily have to be bash, but I think it would be sufficient for this. File names are formatted as such when created: Dest-Date-Time-CID-Destination# I want the files to be moved from a all in one holding folder to a folder structure like this.
.../storage/year/month/day/Destination#/VarX(type)/hour/CID/'File'
I would need an if/else if/else statement to say if Dest = A set VarX = B If for example the file name was
infinity-20100927-17:00-1112223333-4445556666.wav
I would like the above file to end up moved from
.../holding
to
.../storage/2010/09/27/4445556666/Inbound/17/1112223333/infinity-20100927-17:00-1112223333-4445556666.wav
So the script will need to make directories based on information in the file name which is delimited by single dashes. Then move files from the holding folder to the newly created "sorted" folders.
View 15 Replies
View Related
Mar 4, 2011
I am trying to generic way to convert the string datatype to other primitive data type. To achieve, i used Template . But i getting error and couldn't resolve the issue and error reported is also clueless.
Code
====
#include <vector>
#include <iostream>
#include <string>
[Code].....
View 7 Replies
View Related
Jul 17, 2010
I have an Acer Laptop with a built-in Crystal Eye webcamwhich works (tested it with luvcview).The camera is represented by /dev/video0.I would like to read data from this device, but i don't manage to do it.
This code Code: #include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
[code]....
View 3 Replies
View Related
Feb 18, 2010
how can i open the sosreport after generating it from the systemi need to know how to view the data inside it
View 1 Replies
View Related
Sep 9, 2010
Do we know of any utility that would read DIMM VPD data in the system? DIMMs on PCIe Card
View 3 Replies
View Related
Oct 6, 2010
Where apart from ~/.kde4/share/apps/kmail does kmail keep account data, such as login data/names of pop/smtp servers? I wanted to install an entirely clean version of kmail, so I uninstalled/re-installed kmail via YAST. I manually deleted ~/.kde4/share/apps/kmail. After installing kmail I found that the account data of my Yahoo account were still listed in the kmail configuration panel. Shall I delete the Yahoo account within kmail prior to uninstalling the kmail package?
View 4 Replies
View Related
Jul 14, 2010
A few months ago I have setup a server with three hard disks. The partition mapping the disks as follows:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7ca36fee
[code]....
Now I have the following problem the LVM file system don't mount properly.If I open the mount point I see only a few files of the LVM disk. If I want to unmount the disk I get the following error:
umount /data/
umount: /data/: not mounted
If I want to mount the volume I get the following error:
mount -a
mount: /dev/mapper/gegevens-Data already mounted or /data busy
View 3 Replies
View Related
Jan 23, 2010
I'm trying to connect to the VPN of my employer; after fix various minor issues I reach this point in which the DNS entries and the default gateway of the VPN are overwritten with the values of the eth0 device that appears by default. Therefore the vpn is not useful.
View 1 Replies
View Related
Sep 1, 2010
Im having xeltek eeprom programer but I cannot read the chip data on the buffer file, when I read the chip using programer the datas are being sent to the buffer I can just see the adress line ,hex line and ascii line then I dont know which is the exactly data ,
View 1 Replies
View Related
Feb 15, 2010
How make, that disc be able to read and write data for all users? I have Ubuntu 9.
View 2 Replies
View Related
Jul 20, 2010
I have installed it and setup an apache conf. Nagios http page loads but shows errors on every sub-page.
Code:
Whoops!
Error: Could not read object configuration data!Here are some things you should check in order to resolve this error:
1. Verify configuration options using the -v command-line option to check for errors.
2. Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at [URL]..Looking for some assistance, or better still PM me if you'd be willing to remote on and have a look for me.
View 14 Replies
View Related
Jan 17, 2011
I've been using Excel from OpenOffice with moderate success for the last year. Now I've just tried to open a new spreadsheet and I'm suddenly getting a highly condensed view. The cells are about 1mm X 4mm. If I expand them by selecting and dragging, then try to copy data from another spreadsheet onto the new one, the data shrinks to the small scale -- unreadable.
View 4 Replies
View Related
Jul 27, 2011
Right now I have a 320GB system drive and 3TB data drive. I want to add two more 3TB drives and do a software RAID5 3x3TB. Is that possible without losing the data that is already on the data drive?Just want to make sure before I bought the 2 two drives. Not looking for instructions on how to do it,but if you want to include some that would be great too Just making sure it will work.
View 1 Replies
View Related
Apr 3, 2011
I know there's a command to display the live amounts of data being written and read to the disk.Like, it tells you how many blocks have been read/written so far to a device
View 1 Replies
View Related
May 26, 2011
I wonder capability of awk to manipulate data in consecutive multi files by read one batch file.for example I have files: data1.dat, data2.dat,data3.dat and listfile.txt
cat data1.dat
23 34 54
43 45 76
[code]...
View 4 Replies
View Related
Apr 12, 2010
I'm having a slight dilemma on reading data from a text file and outputting it into a table then displaying it. Basically I'm writing a shell script that takes information from text files then outputs the data into a table with 4 headings.he extracting of the data is fine, but creating a table i'm having problems with. I think it is possible to do it using the awk function, but so far i'm having a lot of difficulties.
View 14 Replies
View Related
Mar 5, 2010
I am running ubuntu 8.10 on an old gateway as a server. I have vent up and running just fine. I went to configure the ventrilo_srv.ini file and now that I have made the changes, I need to restart the server program, which I am having problems doing. The following command returns the following:
sudo /home/taylor/ventrilo/ventsrv/ventrilo_srv restart
Ventrilo Server - Public - Version 3.0.3
(c)Copyright 1999-2008 Flagship Industries, Inc.
Unable to open configuration file 'ventrilo_srv.ini'.
ERROR: Unable to read configuration data. Exiting.
What am I doing wrong? Did I change something that shouldn't have been changed. I only set the name to something other than default and set the admin password.
View 1 Replies
View Related
Jun 29, 2011
I can read and write data dvds, but cannot play a regular dvd now. I have libdvdcss installed. I am running Slackware 64 13.37 (just installed).
Code:
MPlayer 20101218-4.5.1 (C) 2000-2010 MPlayer Team
Playing dvd://.
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
[Code]...
It can see the drive is there and /dev/sr0 is linked to /dev/dvd and I tried running as root to check if it was a permissions problem but got the same thing.
I have tried lots of different DVDs in the drive, same issue. I even switched out my DVD drive to another old DVD-ROM I had laying around, same thing.
View 14 Replies
View Related