Difference between revisions of "Shell Commands/SmbFS"
From MorphOS Library
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''SmbFS''' - Mounts a samba share | '''SmbFS''' - Mounts a samba share | ||
− | DOMAIN=WORKGROUP/K,USER=USERNAME/K,PASSWORD/K,CHANGECASE/S,CASE=CASESENSITIVE/S,OMITHIDDEN/S,QUIET/S,ASKPASSWORD=AP/S,CLIENT=CLIENTNAME/K,SERVER=SERVERNAME/K,DEVICE=DEVICENAME/K,VOLUME=VOLUMENAME/K,CACHE=CACHESIZE/N/K,DEBUGLEVEL=DEBUG/N/K,TZ=TIMEZONEOFFSET/N/K,TRANSLATE=TRANSLATIONFILE/K,NETBIOSNAMESERVICEPORT/N/K,PORT=NETBIOSSESSIONPORT/N/K,SERVICE/A | + | DOMAIN=WORKGROUP/K, USER=USERNAME/K, PASSWORD/K, CHANGECASE/S, CASE=CASESENSITIVE/S, OMITHIDDEN/S, QUIET/S, ASKPASSWORD=AP/S, CLIENT=CLIENTNAME/K, SERVER=SERVERNAME/K, DEVICE=DEVICENAME/K, VOLUME=VOLUMENAME/K, CACHE=CACHESIZE/N/K, DEBUGLEVEL=DEBUG/N/K, TZ=TIMEZONEOFFSET/N/K, TRANSLATE=TRANSLATIONFILE/K, NETBIOSNAMESERVICEPORT/N/K, PORT=NETBIOSSESSIONPORT/N/K, SERVICE/A |
''Note: If the service-name can not be found it will usually help to add the name to hosts (Found in System preferences) - just add the service name and IP-adress.'' | ''Note: If the service-name can not be found it will usually help to add the name to hosts (Found in System preferences) - just add the service name and IP-adress.'' | ||
Line 14: | Line 14: | ||
Tips for quitting the command if you've started it as a background process: | Tips for quitting the command if you've started it as a background process: | ||
− | * If you have used the default device name for a samba share, you can unmount the share with the Eject screenbar module. | + | * With the [[Shell_Commands/UnMount|UnMount]] command from the shell. |
− | * It can be quitted from the shell by finding out the process number with the [[Shell_Commands/Status | Status]] command and giving that number to the [[Shell_Commands/Break | Break]] command. | + | * If you have used the default device name for a samba share, you can unmount the share with the Eject [[Screenbar_Modules|screenbar module]]. |
+ | * It can be quitted from the shell by finding out the process number with the [[Shell_Commands/Status|Status]] command and giving that number to the [[Shell_Commands/Break|Break]] command. | ||
* If you want to do the previous operation automatically for example in a script, you can use the following command (including all the apostrophes and alikes): ''Break `Status COM "SmbFS '//sambaserver/sharedfiles'"`'' | * If you want to do the previous operation automatically for example in a script, you can use the following command (including all the apostrophes and alikes): ''Break `Status COM "SmbFS '//sambaserver/sharedfiles'"`'' | ||
* Any program which can send a CTRL-C signal to the program can quit it, for example the TaskManager program. | * Any program which can send a CTRL-C signal to the program can quit it, for example the TaskManager program. |
Latest revision as of 18:45, 15 May 2019
SmbFS - Mounts a samba share
DOMAIN=WORKGROUP/K, USER=USERNAME/K, PASSWORD/K, CHANGECASE/S, CASE=CASESENSITIVE/S, OMITHIDDEN/S, QUIET/S, ASKPASSWORD=AP/S, CLIENT=CLIENTNAME/K, SERVER=SERVERNAME/K, DEVICE=DEVICENAME/K, VOLUME=VOLUMENAME/K, CACHE=CACHESIZE/N/K, DEBUGLEVEL=DEBUG/N/K, TZ=TIMEZONEOFFSET/N/K, TRANSLATE=TRANSLATIONFILE/K, NETBIOSNAMESERVICEPORT/N/K, PORT=NETBIOSSESSIONPORT/N/K, SERVICE/A
Note: If the service-name can not be found it will usually help to add the name to hosts (Found in System preferences) - just add the service name and IP-adress.
A more detailed documentation can be found on the SYS:MorphOS/Locale/Help/english/SmbFS.txt file.
Example:
SmbFS WORKGROUP=example VOLUME=Net: USER=morphosuser PASSWORD=example SERVICE=//sambaserver/sharedfiles
Tips for quitting the command if you've started it as a background process:
- With the UnMount command from the shell.
- If you have used the default device name for a samba share, you can unmount the share with the Eject screenbar module.
- It can be quitted from the shell by finding out the process number with the Status command and giving that number to the Break command.
- If you want to do the previous operation automatically for example in a script, you can use the following command (including all the apostrophes and alikes): Break `Status COM "SmbFS '//sambaserver/sharedfiles'"`
- Any program which can send a CTRL-C signal to the program can quit it, for example the TaskManager program.