Wanting to run a UNIX command on Windows shared files
Leblanc, Benoit
bleblanc at mtq.gouv.qc.ca
Thu Nov 29 06:11:04 GMT 2001
Thank you for the answer.
The 'smbsh' command was not in my Samba package, so I decided to install GCC
2.95.3 and to download Samba 2.2.2 sources to have it compiled using the
'--with-smbwrapper' option. I'm not a programmer and I spent many hours to
debug the installation of GCC (many thanks to Internet and guys like you
that help on mailing lists and newsgroups).
Late in the night, I got GCC to work and started the 'make' of binaries of
Samba, using this command line (see the 'Makefile' file attached):
'./configure --prefix=/opt/samba
--includedir=/opt/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/include
--libdir=/opt/gcc/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3
--with-privatedir=/opt/samba/private --with-lockdir=/opt/samba/var/locks
--with-swatdir=/opt/samba/swat --with-configdir=/opt/samba/lib
--with-codepagedir=/opt/samba/lib/codepages --with-smbwrapper'
After at least one hour of compilation, the whole process crashed returning
these messages (the whole output of the 'make' process lies in the log file
attached):
=============== CUT ================
...
Linking shared library bin/smbwrapper.so
ld: fatal: option -h and building a dynamic executable are
incompatible
ld: fatal: Flags processing errors
*** Error code 1
make: Fatal error: Command failed for target `bin/smbwrapper.so'
=========== END OF LOG =============
As stated earlier, I'm not really a programmer and I don't know where to
look and what to do. Would someone have any tips to get out of this dead
end?
Benoît
-----Message d'origine-----
De : Christian Barth [mailto:barth at cck.uni-kl.de]
Envoyé : mardi 27 novembre 2001 13:59
À : 'samba at lists.samba.org'; Leblanc, Benoit
Objet : Re: Wanting to run a UNIX command on Windows shared files
You may want to have a look at smbsh. The manpage is in the tarball
in docs/manpages. smbsh is not build by default, but with a certain
configure option.
Christian
>
> Hi everybody,
>
> I posted the following on 'comp.protocols.smb' newsgroup but got no
answer.
> I'm now trying this way.
>
> On one side, I have a Solaris 7 box running Samba 2.2.0 and on the other,
a
> W2K
> machine sharing to everyone in full access mode the contents of its
> C:\Public directory.
>
> Is there a way to run a UNIX script or command on this Windows share? I
> tried using 'smbclient' but it seems to be limited to run a local command
on
> local files or remote commands on remote files. I looked at 'smbmount' in
> the documentation, but the command doesn't seem to be available on my
> system.
>
> Samba lets me run Windows commands on UNIX share. I simply want to do the
> same at the other end of the wire.
>
> Any ideas or clues?
>
> Thanks
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
_(_)_ wWWWw _
@@@@ (_)@(_) vVVVv _ @@@@ (___) _(_)_
@@()@@ wWWWw (_)\ (___) _(_)_ @@()@@ Y (_)@(_)
@@@@ (___) `|/ Y (_)@(_) @@@@ \|/ (_)\
/ Y \| \|/ /(_) \| |/ |
\ | \ |/ | / \ | / \|/ |/ \| \|/
jgs|// \\|/// \\\|//\\\|/// \|/// \\\|// \\|// \\\|//
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SambaMak.ZIP
Type: application/octet-stream
Size: 9330 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20011129/fb94e375/SambaMak.obj
More information about the samba
mailing list