Ubuntu :: Run A Program Automatically When A File Appears In A Directory?
Jan 16, 2010
Does anyone know how I can make a program run automatically when a file appears in a particular directory? I have two computers, one to program the firmware on a microcontroller (command line only), and the other is my desktop machine running Ubuntu. I have an NFS share between the two. What I want is to be able to drop a new firmware load into the shared directory from the desktop, and have the other computer notice it and program the microcontroller with it. Right now I have to open an SSH session to the other computer, run the program manually, and then delete the file. I would like to automate all of that.
View 5 Replies
ADVERTISEMENT
Apr 14, 2010
Is there any program/script that can create a torrent file for each file in a directory? I have been looking all over but can't seem to find anything of the sort. I have 700+ files I REALLY don't want to make my self.
View 1 Replies
View Related
Jul 12, 2010
Is there a way to have a directory automatically change the permissions of a file that is written to it? I have a program which saves files to a directory, and gives those files read-only permissions to members in the group. This is a problem, because other users of my computer need to be able to edit these files. The directory itself has rw permissions for group members.
I guess what I am looking for is a way for the directory permissions to "override" the permissions the program is trying to save the files as. For example, if the directory has "rw" permissions for the group, then any file saved to it will automatically get the same permissions, regardless of what the program writing the file is trying to do.
View 3 Replies
View Related
Jul 7, 2010
I have two questions:How do I remove files from Directory A if their name appears in Directory B?How do I move foo.jpg and bar.jpg from Directory C to Directory D if and only if foo.png and bar.png appear in Directory D?I suspect there's probably a bash one-liner for this, but...I can't come up with it.
View 5 Replies
View Related
Jul 19, 2010
How do i extract a file to a program directory ?
YEA stupid question but im used to windows and im trying to learn ubuntu so far i love it just hitting bumps..
I want to extract
xbmc to
.xbmc/plugins/program directory
i downloaded the file, but when it comes to extracting im lost, because i cannot access the root ? is that were it is ?
View 9 Replies
View Related
Apr 9, 2011
is a file association to a program that will only run in it's own directory. (Arobas' Guitar Pro, if you're curious). The link created by the installer leads to a shell script, which cd's to /opt/GuitarPro6, then executes the program there. Attempting to call the program from outside that directory fails, as the program cannot find it's libraries. It starts normally otherwise.
Passing a file name to the program via the command line works fine, IF you start with the working directory as above. The question is, what can I do to pass the filename to the command line in the shell script, so that double-clicking in Nautilus brings up the program with the file? (Currently, just associating with the shell script gives me the program, with no loaded file).
Second issue is files with an .hjt extension. They're essentially text files, following a specific format used by Treepad. Nautilus recognizes them as text files. When I change their association to Treepad, regular .txt files follow this change, and when I change the .txt's back to Leafpad, the .hjt's follow. How can I separate the .hjt's from the .txt's?
View 9 Replies
View Related
May 25, 2010
I wrote a program in c++ on fedora 11. When i compiled it using g++. it displays the following error:
g++ fibnocci.cpp
fibnocci.cpp:2:22: error: iostream.h: No such file or directory
fibnocci.cpp: In function int main():
fibnocci.cpp:8: error: cout was not declared in this scope
fibnocci.cpp:8: error: endl was not declared in this scope
View 2 Replies
View Related
Feb 23, 2011
I was wondering whether there is an inbuilt logging system in UNIX?
I ran and installation and the program opened up automatically but I can't find the program executable.
If I could find a log then I could locate this file.
View 9 Replies
View Related
Apr 22, 2011
where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?
View 1 Replies
View Related
Mar 18, 2010
I have index.html page with tables rows and cells. Within table I have:
Quote:
<table width="100%">
<tr>
<td class="form-font" width="40%" align="left">
<iframe src="create.html" width="100%" height="200" frameborder="no" scrolling="no">
[Code].....
but in index.html appears the following screeshot.jpg. create.html and index.html are both in /var/www directory. Why create.html appears in /cgi-bin directory?
View 2 Replies
View Related
Apr 29, 2011
I'm using opensuse 11.4 kde 4.6. When I (try) to start libreoffice, splash window appears but program doesn't start.
When I launch it from console as normal user i don get any clue, but as root user i got this:
Code:
I run "export $(dbus-launch)" and libreoffice works, but only launching it as root user.
View 4 Replies
View Related
Jan 14, 2011
When I try to run a program from the terminal, bash reports "No such file or directory", even though the file exists, is executable and I have permission to run it. The same program worked in the past.
View 7 Replies
View Related
Dec 21, 2010
I recently removed Winblows Vista from my laptop and replaced it with Kubuntu 10.10 (I left the recovery partition on there, just in case). When I turn on the computer, the GRUB menu appears, I press enter, then a little flashing underscore appears on the screen in the top left hand corner. After a few seconds, the Kubuntu logo appears and I can log in.But yesterday I replace Kubuntu with Ubuntu 10.10. The Boot process is the same, but the little flashing underscore in the top left hand corner flashes for about 10 seconds longer then Kubuntu 10.10 did, and then a few paragraphs of text appears for a few seconds, then I am logged in automatically.Is this "unusual" boot process anything to worry about, or am I just being a noob.
View 1 Replies
View Related
Jan 30, 2011
I want to do the following.
1. have a directory full of subdirectory
2. Pick the first file from every sub and copy that to the main directory and also rename that file to the same name as the subdirectory's name
3. need to work in commandline best is a simple script.
View 4 Replies
View Related
Apr 2, 2010
How to make sure that when I save a pdf file, the file extension .pdf appears in the filename? Its a silly little thing, but annoying. The file browser recognises it afterward as a pdf file though, it opens with document viewer ok.
View 9 Replies
View Related
May 18, 2010
I'm trying to get a program to automatically reload if I accidentally close it. This is a remote access program, so it has to be relaunched without me doing anything to help it along if it crashes or I accidentally close it. I noticed that someone came up with a way to solve this back in 2007 [URL].. but the files don't appear to exist any more for it to work. how I might get a program to automatically reload on exit?
View 6 Replies
View Related
Oct 24, 2010
is there a program that would automatically copy podcasts to my mp3
View 2 Replies
View Related
May 12, 2011
I need a program that automaticly runs this command in the terminal when I use it:
sudo modprobe nvidia_g210m_acpi
Sure, I know that it's not that hard to just write it in terminal and so on, but I really want a program for it. I'm using ubuntu 11.04 if U need to know that?
View 8 Replies
View Related
Jul 10, 2011
A server like Lighttpd or Apache starts automatically at boot after you install it. How do I stop it from auto starting? I'd prefer to manually start it when I need it.
View 1 Replies
View Related
Feb 18, 2011
I need to startup a program automatically. What to do? I using kubuntu. In Windows, you go to the startup folder under program files(I think.)
View 1 Replies
View Related
Jun 14, 2011
If I need certain programs such as ktorrent to start automatically on bootup, how do I do it?
View 1 Replies
View Related
Oct 31, 2010
I have a script I would like to have automatically invoked every time the screen is unlocked. Does Ubuntu provide some support for users who wish to do this?
View 1 Replies
View Related
Jun 4, 2010
I am writing from lucyd. When I insert a blank CD opens a Nautilus window that asks me what program I want to use to open the CD. The last time I chose
cd creator, and thereafter it no longer asks me what to do. How can I change this?In other words how can I choose another program to open automatically blank cds??
View 3 Replies
View Related
Jan 7, 2009
CENTOS 5.2 - updated Jan 7 2009
I am trying to install Sun JDK, to test the file i am trying to extract the RPM using following command:
$ . ./jdk-6u10-linux-i586-rpm.bin -x
I always get this response :- Checksumming...the download file appears to be corrupted.What I've tried so far :-
- Centos 4.5
- Downloading 6u10 & "bin" only versions of sdk :-
jdk-6u10-linux-i586.bin
jdk-6u10-linux-i586-rpm.bin
jdk-6u11-linux-i586.bin
jdk-6u11-linux-i586-rpm.bin
- Using Sun DL Manager.I am aware of specific instructions for JDK on Centos but it seems I can't get past the first step.
View 4 Replies
View Related
Sep 22, 2010
When I run the updates option on it, it tells me that the virus engine is out of date. However, it does not automatically download it, nor does it suggest a site. Is there a way to get the program to automatically download updates? If not, can you direct me to a site that would have the updates?Also, if there is a more newbie-friendly or perhaps more reliable anti-virus program, could someone direct me to it?
View 1 Replies
View Related
Jun 9, 2010
I have a problem with streaming from .mov from Appl.com. As most of you must know, the iPhone 4 was announced in WWDC 10 on Monday. I am interested in it and I wanted to watch the keynote (available at different resolution:[URL]... When I click on low-large resolutions, Totem opens up and I get this error message:
Code:
GstDecodeBin2: This appears to be a text file When I click the HD , totem opens, and video starts streaming, but it is of a terrible quality (so much for Apple's "perfect presentation" rep). I'm not so sure this is so much a problem of Ubuntu as of my network connection. I have heard that "live" streams are not of that great quality because the video player is prioritizing to deliver live continuous stream, I can understand that. But I want quality video. So, can any of you Linux guru's (I am a newbie) tell me if this is a problem with Ubuntu (not proper mov codecs?), my connection? Apple?
Also, as I understand it, if I were to download the stream, it would have full quality because the player isn't focusing on delivering it live. Is there any app/Firefox extension/hack/terminal code, etc.
View 2 Replies
View Related
Sep 1, 2011
This header file no longer appears when it is set as the "stylesheet/imags/heading banner"
Ubuntu 11.04
GnuCASH v.2.4.2 (from the ubuntu 11.04 repos)
This worked in GnuCASH Ubuntu 10.04 (gnucash 2.2.9-5) but no longer works after doing a clean install followed by copying ~/.gnucash and ~/.aqbanking back into place. The rest of the attributes of both my custom Invoice & Report stylesheet still work (ie colours, etc.) but even when creating a brand new custom stylesheet I cannot get these images to appear after adding them to a stylesheet and saving the settings. This worked fine in the previous version of the application. I have tried deleting the old stylesheet(s) and recreating from scratch and the only thing that does not work is placing the banner or logo images where they are supposed to be. I've done an strace to verify that the image is being found: it's just not appearing.
[code]...
I have asked around on IRC (irc.gnome.org #gnucash) and it was suggested that it might be a webkit issue, libwebkitgtk is verified as installed.
View 1 Replies
View Related
Feb 17, 2011
i want my computer to function as an alarm clock, i want it to be shut down but start up automatically at a desired time (i'll also have tomboy notes display reminders of what i need to do for the day) this would be a great program
View 7 Replies
View Related
Apr 25, 2010
I have installed real player 64 bit version from here . The player was installed properly but its not playng .rm files. Real player window appears but does not play file.
View 1 Replies
View Related
May 4, 2010
I have made a persistent live usb of suse 11.2 using a '.iso' file. Now when I boot from the Live usb, the file system appears read only. I want do some modifications in the files.
View 2 Replies
View Related