Hi all,
Want to know what does export command do??
What is its functionality?
And on a shell prompt
$at=1
$ echo $at
1
The variable above is it available to other script??? (3 Replies)
Hi All
I am getting and error export command not found
What can be the possible reasons for this and how do we verify those
Please help me
Thanks (1 Reply)
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Hello All,
I am transferring a file from one server to another server.
File name is stored as Wip_DD-MM-YY .i.e if we run the program today the file is stored as Wip_18-FEB-09.txt.
This file i need to transfer.
My question is how do we assign the this filename to a variable.
i treid in... (3 Replies)
hello all,
I know this is a silly question but i have no answer.
I have a shell script temp.ksh
export value="mynh"
echo $value
but when i execute the temp.ksh "mynh" is printed but
when i give echo $value in the shell after the program is executed, nothing is printed.
... (3 Replies)
Hi,
I need help for using export command. Lets consider there are 2 servers ie. A & B. I am running one script on server A which calls another script on server B using remsh command. There is one variable in the script on server B which do not gets evaluated and ultimately i get the error.
... (3 Replies)
Hi
The command "ssh -V" works as normal user but fails as root.
As Normal user:
bash-3.00$ ssh -V
OpenSSH_5.9p1, OpenSSL 1.0.0e 6 Sep 2011As Root user:
# ssh -V
bash: ssh: command not found
Thanks (1 Reply)
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
LEARN ABOUT OPENSOLARIS
unshare_nfs
unshare_nfs(1M) System Administration Commands unshare_nfs(1M)NAME
unshare_nfs - make local NFS file systems unavailable for mounting by remote systems
SYNOPSIS
unshare [-F nfs] pathname
DESCRIPTION
The unshare command makes local file systems unavailable for mounting by remote systems. The shared file system must correspond to a line
with NFS as the FSType in the file /etc/dfs/sharetab.
OPTIONS
The following options are supported:
-F This option may be omitted if NFS is the first file system type listed in the file /etc/dfs/fstypes.
FILES
/etc/dfs/fstypes
/etc/dfs/sharetab
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnfssu |
+-----------------------------+-----------------------------+
SEE ALSO nfsd(1M), share(1M), attributes(5)NOTES
If the file system being unshared is a symbolic link to a valid pathname, the canonical path (the path which the symbolic link follows)
will be unshared.
For example, if /export/foo is a symbolic link to /export/bar (/export/foo -> /export/bar), the following unshare command will result in
/export/bar as the unshared pathname (and not /export/foo):
example# unshare -F nfs /export/foo
For file systems that are accessed by NFS Version 4 clients, once the unshare is complete, all NFS Version 4 state (open files and file
locks) are released and unrecoverable by the clients. If the intent is to share the file system after some administrative action, the NFS
daemon (nfsd) should first be stopped and then the file system unshared. After the administrative action is complete, the file system would
then be shared and the NFS daemon restarted. See nfsd(1M)SunOS 5.11 6 May 2003 unshare_nfs(1M)