Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: bomrat on February 23, 2019, 05:23:55 PM

Title: samba script
Post by: bomrat on February 23, 2019, 05:23:55 PM
hi, i am trying to make a samba script for startup.
i created a smb_startup script made it executable.

i can run the exact command in a shell window and it works. in the script i get an error..

the only thing i can think of is the line is so long it line wraps

it has the following:
smbfs Volume="a_share" Workgroup=workgroup Service=//192.168.0.200/amiga_share

any ideas?

thanks

Title: Re: samba script
Post by: pyrre on February 23, 2019, 08:46:25 PM
workgroup Service

should it not be "workgroup Service"

Or rename your workgroup to a smaller name.
Title: Re: samba script
Post by: bomrat on February 23, 2019, 09:32:55 PM
it is separate.   Service=
Title: Re: samba script
Post by: pyrre on February 23, 2019, 09:44:41 PM
ok
Title: Re: samba script
Post by: amiga1260 on February 24, 2019, 07:49:49 AM
The last time I tried was using this command:

run >nil: smbfs Volume=E Workgroup=test User=PCGuest Service=//intel/e
Title: Re: samba script
Post by: nbache on February 24, 2019, 11:56:57 AM
IIRC, even if you use an IP address as the hostname, you still have to make sure that it exists in your Hosts (in Internet prefs and consequently in the SYS:Devs/Internet/hosts file).

Also, make sure you have the network up before executing tyhe script, i.e. if you are running it during startup, call it from the bottom part of your S:Network-Startup script.

(talking OS4 here, of course; if you're on anything lower, the principles are the same, but you have to work out the equivalents yourself :-)).

Best regards,

Niels
Title: Re: samba script
Post by: bomrat on February 24, 2019, 06:51:54 PM
my issue is in a script it does not work.  if i keep the line short it works in a script...
if it line wraps it does not work...

how do i fix that...
thanks
Title: Re: samba script
Post by: amiga1260 on February 24, 2019, 08:04:24 PM
Try your parameter Volume without quotes.
Title: Re: samba script
Post by: bomrat on February 26, 2019, 05:01:07 PM
hi, running without quotes crashes.
i have it as a standalone script, and that works.
i just need to run the script when i want to mount it.
now to make an icon for it.
thanks