Jump to content

Recommended Posts

Posted

есть скрипт запуска в /opt/etc/init.d/S00soft в нём export SOFT=/opt/var/lib/soft как поглядеть переменную?

~ # env | grep SOFT

~ #

Пусто.

Posted

Значит, в том контексте, где вы проверяете эту переменную она не определена. К примеру, экспорт переменной в /opt/etc/init.d/S00soft повлияет на дочерние процессы этого скрипта, но никак не скажется на родительском окружении SSH, в который вы вошли.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.