Hi Aaron, This is a great idea, I try it in the evening.
zsombor > Zsombor BOLYÓCZKI wrote: >> Hi stinga, >> >>> What about environment variables? >>> They might not be set. >> >> What do you mean? What variables? >> What should I set? >> I don't use env. variables to record tv. I just parameter my script and >> nothing more. Does ivtv need any env. var.? > > When cron runs a script, it doesn't set any variables (for example, PATH > is probably just /bin:/usr/bin, etc). > > The most simple fix is to call a script in cron and put > > . $HOME/.profile > > at the beginning and all the real command below that. (yes, there is a > dot-space at the beginning of the line). > > This will set all environment variables just like when you log in. > > That's the quick fix. The more secure fix is to check for all the > variables which you need and to set them to the correct values in your > script. > > Long explanation: For performance and security reasons, cron doesn't try > to setup the whole environment of a user when it runs a job. > > Imagine that you have a directory in the PATH of root (like > /usr/local/bin or $HOME/bin) and by accident this is public writable. > > If root runs a cron job, you could inject new commands into the job my > putting new files into this directory. Therefore, the environment > usually is as small as possible. > > Regards, > > -- > Aaron "Optimizer" Digulla a.k.a. Philmann Dark > "It's not the universe that's limited, it's our imagination. > Follow me and I'll show you something beyond the limits." > http://www.philmann-dark.de/ > > _______________________________________________ > ivtv-users mailing list > [email protected] > http://ivtvdriver.org/mailman/listinfo/ivtv-users > _______________________________________________ ivtv-users mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
