Sponsored Content
Special Forums IP Networking Mounting shares from a Windows PC Post 12200 by SeCBerm on Thursday 20th of December 2001 10:04:36 PM
Old 12-20-2001
Thanx PxT and /*ghost*/...

That example was what I needed... the -o option threw me!!!! Smilie Thanx alot. Much appreciated.

Last edited by SeCBerm; 12-21-2001 at 10:43 AM..
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Mounting a windows share on AIX

Hi, How can I mount a Windows share (over samba) on an AIX machine? I know there is a utility called smbmount on Linux, but alas, I cannot find out how to the same thing on AIX. anyone have any ideas? thanks! (3 Replies)
Discussion started by: szahir1
3 Replies

2. Solaris

windows mounting on sun

i have a problem in my sparc based solaris network i want to mount some of windows directories on sun solaris9 if any body know how to do this please tell me . regards. (3 Replies)
Discussion started by: asif.suleman
3 Replies

3. HP-UX

Mounting of unix NFS to windows XP

is it possible? i will only config on the windows side. is there a third party software to help me accomplish this? tnx (3 Replies)
Discussion started by: Amaru
3 Replies

4. UNIX for Advanced & Expert Users

Help mounting Windows share in UNIX

We recently upgraded one of our engineering servers, and now the lone UNIX box that houses older CAD files can not connect to it. I have tried every variation of mount I can find, but to no avail. Help is appreciated. Here are the specs: Server: Windows 2003 x64 with Unix Services for Windows... (8 Replies)
Discussion started by: shatterstorm
8 Replies

5. Red Hat

Mounting Windows Filesystem

i am new to linux i want to know how to create ntfs partition and mount all windows drives in linux please help me (2 Replies)
Discussion started by: arunkmohan18
2 Replies

6. UNIX for Dummies Questions & Answers

Errors when connecting to SMB shares from Windows

Hi all I have a server running Oracle Linux. When i try \\linux-server\share I get prompted for username & password or I get a permission denied error. I see these errors in the messages file on the Linux server: smbd: auth/auth_util.c:create_builtin_administrators(792) Feb 15 10:39:13... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

7. UNIX for Dummies Questions & Answers

Help mounting Samba shares

I have these two shares on my Ubuntu Server: path = /media/share read only = no guest ok = yes path = /var/www read only = noI want to mount them to the directories that I created on my Desktop called "shared" and "www" how do I do this? I ran the command: smbclient -L... (1 Reply)
Discussion started by: shadowcat
1 Replies

8. AIX

Use SMB/CIFS signing when mounting Win shares

Hi, We have a number of Windows Server 2003 shares mounted on our AIX server via CIFS, using a command similar to this: mkcifsmnt -f /test -d testshare -h testserver -c testuser -p pass -w DOMAIN The windows servers are currently being upgraded to 2012, and as part of this they are setting... (0 Replies)
Discussion started by: AndyG
0 Replies

9. Shell Programming and Scripting

[Perl] Module for recursive listing of remote Windows shares

Hi, I'm looking for a Perl module which can recursively list remote Windows shares from within a Linux machine. I've tried Filesys::SmbClient ans Filesys:SmbClientPars but they just list the current directory Thank You for your help (4 Replies)
Discussion started by: Fundix
4 Replies

10. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies
autodie::exception(3pm) 				 Perl Programmers Reference Guide				   autodie::exception(3pm)

NAME
autodie::exception - Exceptions from autodying functions. SYNOPSIS
eval { use autodie; open(my $fh, '<', 'some_file.txt'); ... }; if (my $E = $@) { say "Ooops! ",$E->caller," had problems: $@"; } DESCRIPTION
When an autodie enabled function fails, it generates an "autodie::exception" object. This can be interrogated to determine further information about the error that occurred. This document is broken into two sections; those methods that are most useful to the end-developer, and those methods for anyone wishing to subclass or get very familiar with "autodie::exception". Common Methods These methods are intended to be used in the everyday dealing of exceptions. The following assume that the error has been copied into a separate scalar: if ($E = $@) { ... } This is not required, but is recommended in case any code is called which may reset or alter $@. args my $array_ref = $E->args; Provides a reference to the arguments passed to the subroutine that died. function my $sub = $E->function; The subroutine (including package) that threw the exception. file my $file = $E->file; The file in which the error occurred (eg, "myscript.pl" or "MyTest.pm"). package my $package = $E->package; The package from which the exceptional subroutine was called. caller my $caller = $E->caller; The subroutine that called the exceptional code. line my $line = $E->line; The line in "$E->file" where the exceptional code was called. context my $context = $E->context; The context in which the subroutine was called. This can be 'list', 'scalar', or undefined (unknown). It will never be 'void', as "autodie" always captures the return value in one way or another. return my $return_value = $E->return; The value(s) returned by the failed subroutine. When the subroutine was called in a list context, this will always be a reference to an array containing the results. When the subroutine was called in a scalar context, this will be the actual scalar returned. errno my $errno = $E->errno; The value of $! at the time when the exception occurred. NOTE: This method will leave the main "autodie::exception" class and become part of a role in the future. You should only call "errno" for exceptions where $! would reasonably have been set on failure. eval_error my $old_eval_error = $E->eval_error; The contents of $@ immediately after autodie triggered an exception. This may be useful when dealing with modules such as Text::Balanced that set (but do not throw) $@ on error. matches if ( $e->matches('open') ) { ... } if ( $e ~~ 'open' ) { ... } "matches" is used to determine whether a given exception matches a particular role. On Perl 5.10, using smart-match ("~~") with an "autodie::exception" object will use "matches" underneath. An exception is considered to match a string if: o For a string not starting with a colon, the string exactly matches the package and subroutine that threw the exception. For example, "MyModule::log". If the string does not contain a package name, "CORE::" is assumed. o For a string that does start with a colon, if the subroutine throwing the exception does that behaviour. For example, the "CORE::open" subroutine does ":file", ":io" and ":all". See "CATEGORIES" in autodie for futher information. Advanced methods The following methods, while usable from anywhere, are primarily intended for developers wishing to subclass "autodie::exception", write code that registers custom error messages, or otherwise work closely with the "autodie::exception" model. register autodie::exception->register( 'CORE::open' => &mysub ); The "register" method allows for the registration of a message handler for a given subroutine. The full subroutine name including the package should be used. Registered message handlers will receive the "autodie::exception" object as the first parameter. add_file_and_line say "Problem occurred",$@->add_file_and_line; Returns the string " at %s line %d", where %s is replaced with the filename, and %d is replaced with the line number. Primarily intended for use by format handlers. stringify say "The error was: ",$@->stringify; Formats the error as a human readable string. Usually there's no reason to call this directly, as it is used automatically if an "autodie::exception" object is ever used as a string. Child classes can override this method to change how they're stringified. format_default my $error_string = $E->format_default; This produces the default error string for the given exception, without using any registered message handlers. It is primarily intended to be called from a message handler when they have been passed an exception they don't want to format. Child classes can override this method to change how default messages are formatted. new my $error = autodie::exception->new( args => @_, function => "CORE::open", errno => $!, context => 'scalar', return => undef, ); Creates a new "autodie::exception" object. Normally called directly from an autodying function. The "function" argument is required, its the function we were trying to call that generated the exception. The "args" parameter is optional. The "errno" value is optional. In versions of "autodie::exception" 1.99 and earlier the code would try to automatically use the current value of $!, but this was unreliable and is no longer supported. Atrributes such as package, file, and caller are determined automatically, and cannot be specified. SEE ALSO
autodie, autodie::exception::system LICENSE
Copyright (C)2008 Paul Fenwick This is free software. You may modify and/or redistribute this code under the same terms as Perl 5.10 itself, or, at your option, any later version of Perl 5. AUTHOR
Paul Fenwick <pjf@perltraining.com.au> perl v5.16.2 2012-10-25 autodie::exception(3pm)
All times are GMT -4. The time now is 03:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy