LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   export not found (https://www.linuxquestions.org/questions/linux-server-73/export-not-found-4175507941/)

sanjay2004 06-13-2014 07:51 AM

export not found
 
Hi,

I am unable to find export command on my shell, how can add this?


[root@server22 ~]# cfg2html
export: Command not found.
export: Command not found.
export: Command not found.
SCRIPT=: Command not found.
Illegal variable name.

[root@server22 ~]# whereis export
export: /usr/share/man/man1p/export.1p.gz /usr/share/man/man1/export.1.gz
[root@server22 ~]# which export
export: Command not found.
[root@server22 ~]# find / -name export -type f
[root@server22 ~]# export
export: Command not found.
[root@server22 ~]#

Habitual 06-13-2014 08:06 AM

Show us the script...

sanjay2004 06-13-2014 08:24 AM

Quote:

Originally Posted by Habitual (Post 5187557)
Show us the script...

not getting....., cfg2html-1.79-1.el5.rf.noarch.rpm is a installed to collect the asset details.

to executing this I am getting the error of export not found,

Habitual 06-13-2014 08:45 AM

What does the documentation suggest?

DJ Shaji 06-15-2014 06:04 PM

Hi Sanjeev! export is there in your system only. the cfg2html is a having script only. you are the open in text editor and by hand variables export only. from script i take the lines here:
Code:

export PS4="DEBUG => "
export LANG=en_US

"export" is just another way to set shell variables. In bash you can just do variable=value to declare it. What shell are you running? Post the output of
Code:

echo $SHELL


All times are GMT -5. The time now is 05:44 AM.