07-11-2007
Quote:
Originally Posted by
Jolas
Is there anything else that needs to be done on the Windows side
Yes, as I said, you need to change the rights on the shared directory.
10 More Discussions You Might Find Interesting
1. SCO
I am very new to Unix. Is it possible to setup a NFS share on a Sco Unix server that could be accessable by a Windows 2003 server? If so could someone point me in the right direction with either the commands or documentation? (1 Reply)
Discussion started by: Johnd
1 Replies
2. Windows & DOS: Issues & Discussions
I'm trying to ftp a file from Solaris to Windows XP Pro using SFU and the command that I used is as follows:
ftp -n “host” << cmd
user “loginname” “password”
cd Directory
ls filename error
bye
cmd
If the filename does not exist, it shows the following output:
Output to local-file:... (2 Replies)
Discussion started by: ilak1008
2 Replies
3. UNIX for Advanced & Expert Users
Can I always stat a file which is NFS mounted. Will the results always show up and make sense ?
File size, blocks, access time etc ? Will we always be able to get that information for an NFS mounted file.
I mean, that file is sitting on a remote system right.. which can be any system.. EMC or... (3 Replies)
Discussion started by: the_learner
3 Replies
4. Shell Programming and Scripting
hi guys
i am trying using this awk command which works perfectly on unix
awk '$1>=dt' dt="2007-12-03" filename
but when i run same command for same file under SFU it does nothing simply prints the file ( just like cat command ) i am not getting why ?
any way i used sed for same ( little... (5 Replies)
Discussion started by: zedex
5 Replies
5. Linux
Hello All,
I have a small question regarding the NFS file handles.
Suppose I have a NFS client who has requested for a particular file from the NFS server.Now lets assume that I am using a NFS v2 server. So I get the filehandle for that file and I can use it. Suppose later I upgrade the server to... (0 Replies)
Discussion started by: prathamesh
0 Replies
6. Solaris
Ok. Here is the situation, I have server A which need to access /tmp folder of server B. Can I mount NFS share (/tmp) from client (serverA)?please let me know (3 Replies)
Discussion started by: sam101
3 Replies
7. Solaris
How do I get directories form remote server " A " mounted to server B? Please provide the necessary steps. (1 Reply)
Discussion started by: sam101
1 Replies
8. HP-UX
Hi, I support a small lab of older HP UX 9 and 10 boxes. We have some older NT 4.0 machines at each UX box, with a old ZFS Server programs hosting two mounted directories. (Each UX and NT machine is on its own private network via crossover cable). Due to hardware failure/support EOL on NT, I have... (3 Replies)
Discussion started by: the spyder
3 Replies
9. Solaris
Hello,
I have a quick question. How do you know which protocol version of NFS is setup on your Solaris 10 servers?
Example 2, 3 or 4 (3 Replies)
Discussion started by: bitlord
3 Replies
10. UNIX for Dummies Questions & Answers
I have a somewhat interesting problem, we've decided to load balance a java application and as such I'll be running our application on four physical machines as opposed to the single machine it's currently running on.
I've centralized the directory that the application requires (including the... (2 Replies)
Discussion started by: xdawg
2 Replies
LEARN ABOUT CENTOS
shell-quote
SHELL-QUOTE(1) User Contributed Perl Documentation SHELL-QUOTE(1)
NAME
shell-quote - quote arguments for safe use, unmodified in a shell command
SYNOPSIS
shell-quote [switch]... arg...
DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands
or files with embedded white space or shell globbing characters safely. Here are a few examples.
EXAMPLES
ssh preserving args
When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and
passes them to "$SHELL -c". This doesn't work as intended:
ssh host touch 'hi there' # fails
It creates 2 files, hi and there. Instead, do this:
cmd=`shell-quote touch 'hi there'`
ssh host "$cmd"
This gives you just 1 file, hi there.
process find output
It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to
split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote:
eval set -- `find -type f -print0 | xargs -0 shell-quote --`
debug shell scripts
shell-quote is better than echo for debugging shell scripts.
debug() {
[ -z "$debug" ] || shell-quote "debug:" "$@"
}
With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can.
save a command for later
shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command
you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are
things the user can't pass through), you can do something like this:
user_switches=
while [ $# != 0 ]
do
case x$1 in
x--pass-through)
[ $# -gt 1 ] || die "need an argument for $1"
user_switches="$user_switches "`shell-quote -- "$2"`
shift;;
# process other switches
esac
shift
done
# later
eval "shell-quote some-command $user_switches my args"
OPTIONS
--debug
Turn debugging on.
--help
Show the usage message and die.
--version
Show the version number and exit.
AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions.
AUTHOR
Roderick Schertler <roderick@argon.org>
perl v5.16.3 2010-06-11 SHELL-QUOTE(1)