Welcome, Guest. Please login or register.

Author Topic: samba script  (Read 2097 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bomratTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2006
  • Posts: 99
  • Country: 00
    • Show only replies by bomrat
    • http://www.bomrat.org
samba script
« 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

Amiga 1200 towerized, vampire 1200.
 

Offline pyrre

Re: samba script
« Reply #1 on: February 23, 2019, 08:46:25 PM »
workgroup Service

should it not be "workgroup Service"

Or rename your workgroup to a smaller name.
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder
 

Offline bomratTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2006
  • Posts: 99
  • Country: 00
    • Show only replies by bomrat
    • http://www.bomrat.org
Re: samba script
« Reply #2 on: February 23, 2019, 09:32:55 PM »
it is separate.   Service=
Amiga 1200 towerized, vampire 1200.
 

Offline pyrre

Re: samba script
« Reply #3 on: February 23, 2019, 09:44:41 PM »
ok
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder
 

Offline amiga1260

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 679
    • Show only replies by amiga1260
Re: samba script
« Reply #4 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
 

Offline nbache

Re: samba script
« Reply #5 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
 

Offline bomratTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2006
  • Posts: 99
  • Country: 00
    • Show only replies by bomrat
    • http://www.bomrat.org
Re: samba script
« Reply #6 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
Amiga 1200 towerized, vampire 1200.
 

Offline amiga1260

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 679
    • Show only replies by amiga1260
Re: samba script
« Reply #7 on: February 24, 2019, 08:04:24 PM »
Try your parameter Volume without quotes.
 

Offline bomratTopic starter

  • Jr. Member
  • **
  • Join Date: Jan 2006
  • Posts: 99
  • Country: 00
    • Show only replies by bomrat
    • http://www.bomrat.org
Re: samba script
« Reply #8 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
Amiga 1200 towerized, vampire 1200.