<br><br>On Saturday, August 6, 2016, Karl Auer <<a href="mailto:kauer@biplane.com.au">kauer@biplane.com.au</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 2016-08-06 at 09:34 -0500, Peng Yu wrote:<br>
> I need atd be aware of any bash function defined in the bash shell<br>
> when at is called. I don't think this is possible with the current<br>
> version of at,<br>
<br>
No - but the point of my last message was that it is easy to change<br>
at/atd because you have the source code.<br>
<br>
I don't understand what you mean by "be aware of any bash function<br>
defined in the bash shell".<br>
<br>
Do you mean that there are bash functions defined in your environment,<br>
and you want the at-jobs to be able to call them?</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div><br></div><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I just did a quick<br>
test with sh functions and they do not end up in the atjob. I'd already<br>
discarded my bash mods, so cannot test whether they are passed in the<br>
bash environment - you can test that yourself :-)<br>
<br>
If the functions are not passed to atd, there are several ways around<br>
it that do not involve rewriting at/atd, but first tell us if that is<br>
in fact what you want.<br>
<br>
And if it is, do you need your atjobs to have ad hoc access to any<br>
functions that happen to be defined by any user that happens to create<br>
them, or do you need your atjobs to have access to a particular set of<br>
functions?</blockquote><div><br></div><div>The latter. <span></span>I want atjobs have access to everything (including shell varibles and fuctions) in the user shell when at cammand is called.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards, K.<br>
<br>
--<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<wbr>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<wbr>~~~~~~~~~~~<br>
Karl Auer (<a href="javascript:;" onclick="_e(event, 'cvml', 'kauer@biplane.com.au')">kauer@biplane.com.au</a>)<br>
<a href="http://www.biplane.com.au/kauer" target="_blank">http://www.biplane.com.au/<wbr>kauer</a><br>
<a href="http://twitter.com/kauer389" target="_blank">http://twitter.com/kauer389</a><br>
<br>
GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B<br>
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4<br>
<br>
<br>
<br>
<br>
--<br>
ubuntu-users mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'ubuntu-users@lists.ubuntu.com')">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/ubuntu-users</a><br>
</blockquote><br><br>-- <br>Regards,<br>Peng<br>