Re: the usage of env

2024-07-19 Thread pyh
On 2024-07-20 06:35, Greg Wooledge wrote: On Sat, Jul 20, 2024 at 06:30:42 +0800, p...@gmx.it wrote: On 2024-07-20 06:25, Greg Wooledge wrote: > > > > I can not clearly understand for this statement. what's "future shell > > commands"? can you show an example? > > hobbit:~$ unset -v VAR > hobbit

Re: the usage of env

2024-07-19 Thread pyh
On 2024-07-20 06:25, Greg Wooledge wrote: I can not clearly understand for this statement. what's "future shell commands"? can you show an example? hobbit:~$ unset -v VAR hobbit:~$ VAR=bar; ./a.sh I am a.sh, and inside me, VAR=<>. hobbit:~$ echo "VAR=<$VAR>" VAR= OK I know that. $VAR can be

Re: the usage of env

2024-07-19 Thread pyh
On 2024-07-20 05:56, Greg Wooledge wrote: On Sat, Jul 20, 2024 at 05:46:23 +0800, p...@gmx.it wrote: $ VAR1=foo && ./a.sh $ export VAR2=foo; ./a.sh $ ./b.sh $VAR1 will be seen by a.sh only, but $VAR2 can be seen my current login session (such as b.sh). Am I right? I am a bit confused about env

Re: the usage of env

2024-07-19 Thread pyh
On 2024-07-20 00:07, Mike Castle wrote: In addition to what everyone else has said about env(1), there is the fact that Korn derived shells also supports some of the same features. env VAR1=foo VAR2=bar random-command VAR1=foo VAR2=bar random-command $ VAR1=foo && ./a.sh $ export VAR2=foo; ./

the usage of env

2024-07-19 Thread pyh
Hello list, I am not sure how 'env' command works. for example, what's the difference between '/usr/bin/perl' and 'env perl' ? I know env may set a environment variable in system, so my question also includes: 1. where to see a shell environment variable? I tried 'echo $ENV' showing nothing.

Re: Re: auto restarting in crontab

2023-03-16 Thread pyh
For dev stuff, for example, I have many versions of ruby installed in the system by rbenv. Since I often change default ruby in interactive shell, this may break the ruby for sysadmin job in crontab. What’s the solution for this?

Re: Re: home server for email box

2023-03-10 Thread pyh
They are really entire. Thanks for the info. Yong

switch gateway automatically

2023-03-10 Thread pyh
* { font-size: 13px; font-family: 'MS Pゴシック', sans-serif;}p, ul, ol, blockquote { margin: 0;}a { color: #0064c8; text-decoration: none;}a:hover { color: #0057af; text-decoration: underline;}a:active { color: #004c98;} Hello, I have two DSL in family. One is main, another is backup. When the

Re: Re: home server for email box

2023-03-10 Thread pyh
As you suggested I may use other relays as outgoing gateway. But the home box will receive and store messages. I can operate the email accounts for me and my family on this server. Thanks Yong

home server for email box

2023-03-10 Thread pyh
* { font-size: 13px; font-family: 'MS Pゴシック', sans-serif;}p, ul, ol, blockquote { margin: 0;}a { color: #0064c8; text-decoration: none;}a:hover { color: #0057af; text-decoration: underline;}a:active { color: #004c98;} Hello, I have a home server with static IP from the ISP. The server has deb