[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Program in startup



Bob,
    It worked like a charm. Thank you so very much. You have saved me a lot of time and money that
would have been spent on headache pills.

--- Bob McClure Jr <robertmcclure earthlink net> wrote:
> In both cases you want to run them in a subshell and cd to the desired
> directory, to wit:
> 
>   (cd /home/em/fsdir;flowscan &)
> 
> The parens cause everything within to be executed in a subshell, so
> that the "cd" doesn't affect the rest of the script.
> 
> For the cron job, you don't need the subshell:
> 
> */5 * * * * cd /dir_containing_makefile;make
> 
> Hope that helps.
> 
> On Tue, Jul 10, 2001 at 09:33:27AM -0700, Liger-dc wrote:
> > I have his program called flowscan that I want to start automatically whenever I reboot. The
> > problem is that this program has to be run from the same directory  that contains it's config
> > files. Is there any way to set up a command in my rc.local to get this running? 
> > 
> > A similar problem to this is that there is another program that uses a Makefile to generate
> .png
> > and .gif files and I want to run make against this makefile every 5 mins. I used make -f
> > /the/dir/that/the/makefile/is/in/Makefile in the cron, but I got errors because I wasnt in the
> > directory with the makefile and the other files that it needed. These two problems seem
> similar.
> > has anyone else had these problems?
> > 
> > =====
> > Edson Manners
> > Academic Computing & Networking Services
> > Florida State University
> 
> Cheers,
> -- 
> Bob McClure, Jr.            | Aren't you glad you're not getting
> Bobcat Open Systems, Inc.   | all the government you pay for now?
> robertmcclure earthlink net |
> 
> 
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://listman.redhat.com/mailman/listinfo/redhat-install-list


=====
Edson Manners
Academic Computing & Networking Services
Florida State University

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]