I have a computer in the university and I have root access to this pc. Iam trying to install Cblas library on it. But it gives me a starnge error /usr/local/atlas is read only file system. I tried doing mount -l and it gave me that appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......) I think what it means that the main server directory is mounted to /usr/local and it is read only. So, how can I fix this problem to separate the two and make my /usr/local separate
What command would you use to read about the sync system call (not the sync command)? How would you read a local man page for sync that was kept in the /usr/local/share/man?
What are the possible problem when Windows access the file from Ubuntu got Read Only even though have a full permission to read, write and execute the file? Ubuntu to Ubuntu accessing the file there is no problem only Windows got a problem.
error message when I ran my program that I couldn't open my local file. I have two files first one is called client, second one is called server I am using named pipes to sent a message from client to the other file called server in client I used mknod() to create the two named pipes,one for read,one for write and created new thread in client using fork() spawned a child process that executed the server file both named pipes are opened the client file got the message from the user and sent it through the named pipes to the server file when the server receives the message , it needs to verfify it is correct in the server file, a local file descriptor is created to read and send this verifing message when it is not correct but I am getting an OPEN() error when I tried to open this shared local array buff and attach it to a file descriptor where the message is kept why do I get this error in server file
int main() { /*both named pipes are open*/ rfd=open(IFIO1,0); wfd=open(IFIO2,1);
i'm new to linux and i am running ubuntu 11.04.i'm trying to install wine. i downloaded the binary files and extracted them. i tried running the command './configure' and got a error saying :no such file or dir. i read the 'readme' file but cannot configure.
How can I save a file in /usr/local/lib/cnet? I'm trying to save a GIF image in the CNET resource folder to use for a simulation. It says permission denied, and when I try to chmod the folder it gives me the error "not permitted".
I have a file 'my_file.txt' stored on 'myserver1.col.edu' Now, I am using a different server 'myserver2.col.edu' to do some work and I want to access 'my_file.txt' on 'myserver1.col.edu' to read (possibly edit) WITHOUT physically copying the entire file across. Is there a way to do this - perhaps through ssh?
I need to setup my ubuntu pc single nic card ip as 192.168.1.6 for internet and 10.172.170.95 and 135.10.86.100 for my lan and for another network through my 4port DSL modem.So i defined like this.Except addition of last two routes(10.0.0.0/8 & 200.200.176.0/24) everything worked as defined, what is the mistake i did?
I was messing around with my newly installed Archlinux, in a virtual machine (thankfully not my main computer) and now I cannot boot up. The issue is, I read that I could add commands in the rc.local file so that they would be automatically executed after booting up... so, I added the "pacman -Syu" command there, but it usually asks for a confirmation to continue, and that's why I think it is getting stuck there (it gets stuck just after running the daemons).
So, is there a way to stop the rc.local file to be loaded at startup?
I'm storing a list of strings in a file and would like to read the file and pipe each line returned to grep which in turn searches a directory for files containing the string.However this is not returning any output.
Remember back in the days of MS-DOS, a file could have 4 different attributes: archive, read-only, hidden, system. As you know, MS-DOS didn't have any user rights or privileges. Files had no owner. If you were at the command line, you could do whatever you wanted, you could change or delete any files you wanted to... so long as they weren't read-only. Under MS-DOS, if you had a read-only file and tried to delete it, you would get an error saying "Cannot delete read-only file". There was a simple remedy to this, just turn off the read-onlyness:
Code:
attrib -r hello.txt
The point I'm trying to make here is that even though you had full permissions over the file, you still had to turn off its read-onlyness before you could make a change. Well I'm trying to do something similar in Linux. Under Linux, the root user has full permissions over every file. But I need to make a particular file read-only so that not even the root user can alter it. I have a few programs on my computer that need to be run as root because they do some low-level networking (raw sockets and the like), and these programs alter my "/etc/resolv.conf" file. Well I need to find a way of making my "/etc/resolv.conf" file READ-ONLY, even for the root user. It doesn't seem as though the Linux filesystem provides a means of doing this, reason being that the root user will always be able to alter any file it wants to. I was thinking though... there's some way I could turn my "/etc/resolv.conf" file into a virtual file of some sort, like maybe I could use some sort of mount program to mount the file as read-only... ?
I am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.
I wrote a script that basically ftp's to a remote machine to place some files in it. I also setup the .netrc file in my usernames home directory so that i dont need to specify the username and password in the script.
The script works fine if i just run it. However when i put this script in cron job, the remote server wont authenticate. Almost seems like its not getting any login details which i assume should be fed from the .netrc file. Would greatly appreciate any comments please of what im doing wrong...
read a files's specific line but return as argument only part of it ie
...
value # this is mass
value2 # this is force
so, how can I get / use the $value and $value2 as arguments for some other file and skip the rest of the line(s) ? of course, the values are different everytime, but the comment always the same, as well as the position of the lines in the file
I have a log file that I would like to examine during some changes under process that writes to this log. Is there some way to open this file and read in real time changes written to it ?
I have encounter problem about opening a file sharing. The situation goes like this.....
1. A folder and file from ubuntu has a both permission to write,read and execute to a specific user which is i added in a group. 2. When i open a file from ubuntu to my Windows Computer i can edit and save and then close the file. But when i open it again the file and edit then save the problem goes to Read-Only I cannot save the file. 3. When I check again the folder and file permission to read, write and execute and then I can access the file again edit and save.
What are the probable cause of this problem to Windows? Ubuntu to Ubuntu there is no problem accessing and saving a file.
Possible Duplicate: Cross-platform file system Can you please tell me what kind of file system can be read by MacOS X, Linux and Windows? And it can create a file greater 4 GB?
I'm using Ubuntu and I'm programing with eclipse CDT. My goal is to execute a php file and read the output to my c++ program. To do so I thought I should use fork(), dup2() and execl. When in shell, the call "php myscript.php" worked just fine, but when in c++ I tried: execl("usr/bin/php", "php", "home/geiger/workspace/SemiServer/server_content/myscript.php", NULL); And it didn't work (the process wasn't terminated and I got no output). I tried different version of this call, like losing the "php" string and/or drop "home/geiger" from the path string, to no better result.
I am working on the script to parsing the specific message like "aaaa" in multiple log files like N1-***,N2-***,N3-***..The script is to find the list of lof files which contains the message "aaaa" and export the list into excel filE.
I want to read values from a file...these are basically one word values, that is to say that the text file I want to read from contains lines of word length 1, as in:
I made a modification to the /etc/fstab using Ubuntu 10.04 and now it wont boot correctly. I can get the cli but when I enter /etc/fstab and make an edit it says" changing permission of /etc/fstab: read only file system" This is what I get when the system boots:
PHP Code:
[code]....
so if I choose manual I get to the cli and whenever I attempt to edit the file I get the above error. I used another machine and attempted to mount the drive but I get the same error I added notaime option to my fstab by accident so if I choose manual I get to the cli and whenever I attempt to edit the file I get the above error. I used another machine and attempted to mount the drive but I get the same error. I tried
PHP Code:
[code]...
and I get
PHP Code:
[code]....
How can I mount the partition so that I can edit it?
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 ,