Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started 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
-
workgroup Service
should it not be "workgroup Service"
Or rename your workgroup to a smaller name.
-
it is separate. Service=
-
ok
-
The last time I tried was using this command:
run >nil: smbfs Volume=E Workgroup=test User=PCGuest Service=//intel/e
-
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
-
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
-
Try your parameter Volume without quotes.
-
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