Software :: Program To Monitor A Directory And Execute A Script On A Change In Dir?

Oct 27, 2010

What is the best program to use to monitor a directory and execute a script when a new file is dropped in the directory? I've searched Google and just can't seem to find what I'm looking for. I would like to execute a shell script after a .CSV file is moved to a certain directory to generate a chart of the data contained in that file. I've got the script, now I only need to know how to execute it when a new CSV file is dropped into the directory. The Linux Distribution is RHEL 5.

View 2 Replies


ADVERTISEMENT

Debian :: Monitor Running Process And Execute A Command When Change?

Jan 31, 2010

I want to monitor the process running and execute a command if some new process start. For example send a mail if any new process start.

View 1 Replies View Related

Ubuntu :: How To Change Directory Into Which Program Opens?

Feb 11, 2010

I'm working in R and would like to change where the program opens. Currently my default working directory is home/dave and I would like it to open into home/dave/R by default.I'm running mint with xfce.

View 2 Replies View Related

Ubuntu :: Import Music Through Said Program - Change Directory?

Dec 2, 2010

For some time I have been interested in life without a GUI, not necessarily living that life per-say but "interested" as a child would be about astronauts. So having taken said interest I've began to study it lightly at first, trying CMUS as my music player (A text based music player ran through terminal). I've also gotten a "Basic" (in the loosest of terms) understanding of how to import music through said program. Other than such, I know how to change directory, and see files via ls commands.

[code]...

I will sometimes elude me as to the full boundaries of it's uses; So I come asking this, amongst all of you does anyone live within a text based environment for extended periods? Days? Weeks? Years? What advantage does living a text based computer lifestyle give you against GUI folks?

View 9 Replies View Related

OpenSUSE :: Execute Program On Wake / Kill Program On Suspend?

Apr 15, 2011

I have problems to get it work. i have tried to use pm-utils, but it does nothing.

What is need is to kill application, when pc is going into suspend to ram and run that application again on wake. It's a graphical application.

View 1 Replies View Related

Programming :: Awk - Input From One Line - Execute Program - Input From Next Line - Execute Program

Sep 25, 2010

I have a file with two fields of numbers that I want to use as input for another program.

Code:

The above code does not work, as I think it would take the whole first and second fields as the input for one particular instance of the program 'inputbashangle'. What I want is to get the first two numbers from the first line of the file 'outfailtest', execute 'inputbashangle' with them, then move on to the first two numbers of the second line for all the lines of 'outfailtest'.

View 9 Replies View Related

Ubuntu :: Change Default Monitor When Dual Monitor Is Enabled

Nov 19, 2010

I have a dual monitor setup in Ubuntu, with my main monitor on the right and the monitor I want to extend to on the left monitor, but I can't seem to get it to do this, it always has the 'desktop' on the left monitor and then extends onto what I want to be my main monitor. I have an ATI Radeon 4350 Graphics card.

View 1 Replies View Related

Ubuntu :: Possible To Execute Program From RAM

Feb 14, 2010

I was wondering if it was possible to execute a program from RAM, like having the file data in a bash script variable and then running it.
Something like this:
ls=`cat ls`
$ls
So is it possible to run a program without touching the hard disk and without creating tmpfs or ramfs (it would need to be standard user privileges).

View 1 Replies View Related

Fedora :: Using Alt+F2 To Execute Program From Terminal?

Oct 21, 2009

Im trying to install a program with bitrock installer but im asked to logon as root or become super user. When trying to logon as root from logon window I get message that "cant authenticate user" Ive tried to find a place in "users and groups" to become superuser but cant find it.

View 9 Replies View Related

Ubuntu :: How To Compile And Execute IDL Program

Jan 24, 2010

Following is the IDL program found on the internet but i dont know how to compile and execute (even dont know can it be done under linux).

Code:

View 9 Replies View Related

Software :: Execute A Command In The C Program?

Jan 21, 2011

I am trying to execute a limux command in c program using system system call, but the dont want it to dump the output or error logs on the terminal.

View 2 Replies View Related

Programming :: Execute External Program Using C?

Mar 30, 2011

Assume two applications, Application A and Application B. Both are written in C language.I had tried to use system() function in Application A to execute Application B. It success, but Application A cannot continue its own tasks before Application B exit. I want Application A to execute Application B, but Application A can continue its tasks without waiting for Application B to exit.

View 3 Replies View Related

CentOS 5 :: Execute A C++ Program On PowerPC

Oct 5, 2009

I'm trying to execute a C++ program on PowerPC. But I am facing an error saying: "error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory". But a C program gets executed successfully. The programs are cross compiled using PowerPC cross compiler.

View 1 Replies View Related

Fedora :: Execute A Tiny DOS .com Program At Boot?

Dec 18, 2009

I'm building a Cluster with 20 small Compaq ipaq PC's as the nodes. I have absolutely no room for any keyboards on this cluster. The PC's require a keyboard to boot, and there are no BIOS settings I can adjust to fix this problem, and no BIOS updates. I have found a small DOS .com program by Compaq called NO_F1.com it's designed to allow the computer to continue to boot without a keyboard. it's only 172 bytes in size. It sets a bit in the CMOS which allows the boot process to continue without a keyboard. It does not permanently set anything, so it needs to run each time the computer starts.

Is there any way I can execute this program very early in the boot process every time the node boots ? I thought about dissembling the program and trying to modify the boot loader, or some other ASM program, the program is only 172 bytes. But thats really over my head. What could I try, I don't know what to do. Also, I have no floppy drive and no CD drive to boot from, only USB or hard drive.

View 5 Replies View Related

Ubuntu :: Execute Script On Closing Program?

Aug 18, 2010

I am currently trying to set up a media PC running Ubuntu in my living room..I plan to be using XMBC to play my music and videos using a Xbox 360 joypad. I have managed to get 'qjoypad' working so on the desktop the controller controls the mouse, I have also made a little script so that when XMBC opens, 'qjoypad' changes its key mappings to a different profile. However when I exit XMBC, I would like it to return to the default profile, is there any way of doing this?

View 1 Replies View Related

Ubuntu :: Execute A Java Program Without Ssh Connection

May 9, 2011

I would like that my java program continues executing when I close the ssh connection, how can I do that? I suppose I have to create a service, but I have no idea how to do it!

View 3 Replies View Related

Ubuntu :: Auto Execute Program After Booting?

May 2, 2011

I would to start my computer and right after Linux finishes booting, a terminal automatically is opened and a certain program is started.

View 9 Replies View Related

General :: Execute A C Program - Segmentation Fault

Nov 17, 2009

I am using RHEL, and trying to execute a c program.I'm able to compile properly and execute until i reach a function getHandle, where the program gives a segmentation fault. Segmentation fault occurs in getHandle().

Here is the code:

View 3 Replies View Related

General :: Directory Execute Permission

Apr 24, 2010

I was always confused about the way it says that the execute permission for a directory means "able to list it". I just don't get it.Does no exec permission mean "still able to read files from in the directory, but not able to find out what files it contains" or what?

View 2 Replies View Related

Programming :: Execute C Program Through HTML On HTTP Web Server?

Oct 15, 2009

I would like to execute an already written C program that I am running on my embedded Linux, but from afar - through a HTML page. I am running an embedded Linux on my FPGA prototype board with a MicroBlaze soft processor. On this Linux i am running a httpd web server - I can serve html web pages to the outside through Ethernet connection. Now, I have a program written in C in this embedded Linux in /bin/gpio-test that does some stuff with my IO devices. Now I would like to control these IO devices through HTML web page - so I would like to be able to run this gpio-test program from a html web page and possibly send the program some parameters.

View 2 Replies View Related

Fedora Security :: Execute Program By Ordinary User?

Feb 27, 2011

My program attributes (it uses semanage to change range): I'd like to ordinary user (bartek) can execute my program. I executed as root:

chmod u+s se_chmod4

so now my user can change his range in permissive mode by my program. My politic: In enforcing mode i can see attributes but when i want to excute i get:

How should look like my TE file that user (bartek) could execute my program (forget at moment about "semanage")?

View 8 Replies View Related

OpenSUSE :: Can Apparmor Block Execute Any Program In A Specific Dir

Jun 10, 2010

prohibit execution of any program include shell command, only be profiled program could be executed, can apparmor do that?

View 5 Replies View Related

Software :: Execute A Program As The Very Last Step Of Boot Process?

Feb 2, 2011

I want to execute a program at the very last step of Linux boot process. For Debian based Linux distro that uses BSD boot process, I came up with 2 solutions:

1) I should somehow call my program from the /etc/rc.local script (although is this the last step of the boot process?)

2) Use the "multi_end" and "sysinit_end" hooks for executing it at the end of rc.multi rc.sysinit respectively (I don't know how to do it though).

View 6 Replies View Related

General :: How To Execute Binaries Located In Different Directory

Feb 8, 2011

I am a newbie in writing unix scripts: I have a file with a list of arguments like:

./a arg1 arg2 arg3
./b arg1 arg2 arg3
.
.
.
./n arg1 arg2 arg3

But these binaries (a,b,..etc) are in a different sub directory from where the above file is located. How do I write a script that will pick up each line from the file and execute it.

View 2 Replies View Related

General :: Execute A Program Based On A Keypress From A Specific USB Keyboard?

May 4, 2011

I've been given one of these ubiquitous usb-sleep buttons which is basically a supersimple usb-keyboard. It's a big button that sends a SLEEP keypress to the computer when you slam it. But that is pretty boring. I'd love to remap it to do something more fun but I can't figure out how to bind to only the sleep press from the button and not from my ordinary keyboard.

The button identifies as

Bus 001 Device 035: ID 1130:600d Tenx Technology, Inc.

I'd like to know if there's either

a way of mapping a key from a specific keyboard to an action OR a way of remapping the sleep key from a specific keyboard to a new key-code or something like that.

View 1 Replies View Related

Ubuntu :: Give Permission To Execute As A Program To All The Files In A Folder?

Sep 2, 2010

I'm running WoW through wine. In order to install addons I need to give all the files in the program permission to execute as a program. the problem is I can't (dont know how) just right click the folder and give everything inside permission i have to open each one and give them all permission, which can quickly turn into hundreds depending on the addon. how to give permission to execute as a program to all the files in a folder at once it would save me a lot of clicking and time.

View 2 Replies View Related

Software :: Unable To Run C Program - Error : Cannot Execute Binary File

Mar 26, 2009

I have tried to execute the below ns.c program in RHEL 4 by using the command

#gcc -c ns.c -o ns.o

i am not getting any errors but while i am running object file by using the command

#./ns.o

i am getting the below error

bash : ./ns.o cannot execute binary file

/* trinoo daemon */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

[code].....

View 4 Replies View Related

General :: Difference Between Directory Execute And Read Permission?

Mar 3, 2010

I was wondering what is the difference between directory execute and read permission?Also, how do I recursively remove executable permission from a dir, but just apply it to normal files?

View 6 Replies View Related

General :: Execute Scp To Copy Mysql Data Directory?

Aug 31, 2010

We have a test server in which we have not taken backup. Contents under /etc is entirely lost.

I need to execute scp to copy mysql data directory.

Also it is in remote location. Can I recover the data by scp by creating some /etc/passwd , /etc/shadow files ?

View 6 Replies View Related

General :: Seeking Shortcut To Execute A Program With A Supplied Local Path?

Sep 14, 2011

A program requires local path property to perform correctly.I'm seeking shortcut command to execute a program with a supplied localPath For example, cd /usr/local/blogrmis/usr/local/blogrmis/remote & remote program requires local path @ /usr/local/blogrmis to run.is there any shortcut which i can do it in 1 line?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved