Programming :: System() Routine Returns: Access: Unix Error (2) No Such File Or Directory
Oct 23, 2010
I am running shell command through C program using system() routine.
I am executing "opcontrol --status" an executable using the this routine and I get the following error. access: unix error (2) No such file or directory
But when I give the complete path to the executable it runs perfectly.
The executable is installed in "/usr/local/bin/" And the path variable has this path.
I ftp into the server and see the files, but when i try to make a directory or upload a file it returns an error saying that permission is denied.I am wanting the users to be able to log on with their user account and then be able to have full control over their directories. What can i do to fix this problem?I have enabled port forwarding for ftp. What else is there i can do? If you need any extra information, let me know! I would like to get this fixed asap!Here is my vsftpd.conf file.
# Example config file /etc/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of np_ARUDDP99_20110201.zip or np_ARUDDP99_20110201.zip.zip, and cannot find np_ARUDDP99_20110201.zip.ZIP, period.
I have been scripting Inotify to work as file replication.It works very well for casual use when editing or uploading files. But I have to make sure it stands up against a "tar bomb" when we install a new package. EG: tar -xzf really_big_php_project.tar.gz
I'm trying to mount a folder located at 10.0.0.1:/pxe/ on eth1 but I'm not sure how to do this with two NICs enabled. The command mount 10.0.0.1:/pxe/ /mnt/pxe/ works fine when I only am using the one NIC the appropriate machine is on, but how can I specify to use eth1 when eth0 is also enabled?
I'm trying to install Adobe Reader 8 and the command #dpkg -1 AdobeReader_enu-8.1.3-1.i386.deb comes up with the message error processing AdobeReader Cannot access archive. No such file or directory. Error was encountered while processing.
In my project iam using timerfd.h file info. I included it header file, Iam using "arm-none-linux-gnueabi-gcc" compiler. This file exists in "arm-2010q1/arm-none-linux-gnueabi/libc/usr/include/sys". When i try to execute the program iam getting error: sys/timerfd.h: No such file or directory. remaining files able to find from the same location(sys/time.h, sys/ioctl.h,sys/socket.h).
Directories(-entries) are in a EXT2 file system managed in a singly linked list. Delete files in the directory causes Gaps or holes to appear in the linked list of the directory.How does a C-source code look like, which would reorganize this list and remove the gaps or Holes.
In school, my codes are writeen under UNIX system (Solaris10/SUN), now I need to transfer those codes to Linux (Redhat5). But after I directly copy to Linux, it shows many errors and warnings.
Does anyone know which codes I need to modify to specifily suit for UNIX? I am not familiar with those systems and hope to get your kind help.
What are the directories and files in Unix file-system that has default user permission set. For eg. home directory of a user can't be seen by the other users on the system without his permission. In the same way what are the other directories that by default has user permission set at the time user account has opened. Eg. /etc,/bin or what
I have a written a java code to ftp a file from the windows box to unix box. It keeps giving me the following error : "java.io.FileNotFoundException: PORT 204,63,56,5,16,78: 550 Permission denied." I am able to ftp manually from windows to unix.
I need to write a windows batch file to run unix commands by logging onto a telnet unix server. For example , I might want the batch file to log onto the unix sever, run the ls command, collect the output in a file and ftp it back to my windows desktop
It returns an error dealing just with the h264 codec saying that I need to use a vpre parameter? I can't find any documentation on using the vpre parameter.
It seems that the SCO divvy (multipliable file systems in 1 partitions) is the problemSo I am looking for a Linux patch or solution? Note: I no longer have the SCO disks.
I am currently using Ubuntu 9.10. I am writing a small code in C which test the connectivity with MYSQL. I am getting this error. "libmysqlclient.so.14: cannot open shared object file: No such file or directory" What I understand is that you need MYSQL development package in order to access MYSQL database in C. I installed MYSQL using this command. apt-get install mysql-server mysql-client
I'm trying to run X11 windows over ssh but I get this error:
Code:
ssh -X -C server@192.168.1.103 Warning: No xauth data; using fake authentication data for X11 forwarding. server@server:~$ xclock connect /tmp/.X11-unix/X0: No such file or directory Error: Can't open display: localhost:10.0
I managed to connect with another computer. That computer has a /tmp/.X11-unix/X0 socket. Is there a way to create a socket on this computer?
I'm new to UNIX scripting; I�m stuck with the following I have an Oracle SQL script that takes three parameters
1- File Name 2- File Path 3- File creation date
Under UNIX I have a folder where files will be placed frequently and I need to upload those files to Oracle, what I need is a UNIX script that can do the following
Loop through Directory "/home/applmgr/snktmp" Picks only files Pass the file name to parameter &1
[code]....
Is the above possible? I already knows how to call the Oracle Script from UNIX Im only stuck on writing the UNIX part where it List the files attribute(name,path,date) and store them to parameters ,Looping until the last file in the directory If the above is not possible,then how can I create the below from the command line
I'm writing a perl script to remove a test database and part of that is of course getting rid of all files. So I wrote this to do the job:
Code:
This always results in an "Could not open /u00/app/oracle/product/10.2.0/rdbms/dbs for reading: No such file or directory" (that directory is the one ending with the $spfile_dir variable) message, although that directory exists and the executing user has writing rights on it.
The same behaviour if I create the directory array like this:
Code:
The problem does not occur when one of the directories is the only element in the array though. Of course I could copy and paste that part of the script for the second directory, but I don't like that workaround.
do have installed glib and dbus and can find them manually , /usr/include/glib-2.0/glib.h , but while comipling applicaiton it gives following error messages.
/usr/include/libosso.h:32:18: error: glib.h: No such file or directory /usr/include/libosso.h:38:23: error: dbus/dbus.h: No such file or directory /usr/include/libosso.h:39:32: error: dbus/dbus-protocol.h: No such file or directory
I need to write a batch file for windows that automatically starts the cygwin tool in windows and executes the unix scripts.Previously we had these scripts in unix server.Now we need to migrate them to Windows server.For this reason we are using cygwin tool that allows the scripts to be executed on Windows server.We had written a batch file that starts the cygwin tool,but we were not able to execute the unix scripts.How can we write a batch file such that it executes all the unix scripts in cygwin.
I tried compiling a simple Hello World with gcc but didn't have any luck. I got this message: Code: junk.c:1:19: error: stdio.h: No such file or directory gcc was installed and configured correctly at one point but I think I changed the the .bash_profile since then. I checked where stdio.h lives. The path is:
Code: mkdir: cannot create directory `/dev/cgroup/cpu/user/5900': No such file or directory bash: /dev/cgroup/cpu/user/5900/tasks: No such file or directory bash: /dev/cgroup/cpu/user/5900/notify_on_release: No such file or directory It seems like it's probably from this part of .bashrc:
[Code]...
What does this code do, why, and what's causing it to go wrong?
i have been using samba to gain access into windows computer through my pc which has fedora 8 ..can i access the unix machine from another unix machine? is yes then what is the procedures ?
Can't log into my XFCE desktop like I normaly do. all the sudden I get notified that my xsession lasted less then 10 secondsLooking at the error I can see this:
Unable to access file /home/username/.iceauthority: No such file or directory
Using failsafe I can start a terminal. From terminal I tried to start X
Code: sudo startx Result: Running on desplay:0
So I tried to run this;
Code: sudo startxfce4 And I get up a graphical desktop.
So this is not a critical situation as I easily can use this method to log on, but as there has been something causing this I would like to be able to resolve this nonetheless. Btw it is not the old chmod trick in play here, cause my .iceauthority file is gone alltogheter.
I bought a new SD card which I intend to put some MP3s on - except that I can't write to it because it tells me the destination is Read Only. No-probs thinks I: I'll just reformat it.
"Error creating file system: helper exited with exit code 1: cannot open /dev/mmcblk0p1: Read-only file system"
Various chmod commands all result in Read-only file system. I tried umount then mount commands, but it couldn't find it to mount once I'd unmounted it using the same /media/ file path (I assume it's the only one).