I have a 6 computers home network and 1 one them is acting
as a file server that authenticates usersfor domain logons.
I read a samba book about creating a dos batch script that
would automatically mount the users home directory in the
drive "n:", the script conatins the following lines...
net use n: \\sambaserver\username /yes
** note: the file is saved in the /home/netlogon/username.bat**
** All users have their own batch file in the netlogon directory**
the problem is that whenever i create the batch file in linux
using vi or any text editor, the script cannot be executed and,
my friend told me that i need a program that would convert the
batch script created in linux to have dos commands. Does anyone
of such package/program? Or does anyone know an easier way to do
this?
As of now i have to create all the scripts for all the users in notepad,
so that it can be executed, then copy it to the the netllogon directory
of my samba server.
Thanx in advance!!!
Best regards,
Heiko
__________________________________
www.edsamail.com
"Sano B Rutsen" <heiko@edsamail.com.ph> wrote on 23.09.01 03:51:51:>the problem is that whenever i create the batch file in linux >using vi or any text editor, the script cannot be executed and, >my friend told me that i need a program that would convert the >batch script created in linux to have dos commands. Does anyone >of such package/program? Or does anyone know an easier way to do >this?Hi Heiko, try to use "recode lat1..ibmpc <infile >outfile". Ciao Oliver -- Good programming is 40% experience, 30% skill, 20% RTFM, 10% caffeine, and 5% attention to detail. Oliver Six, CAHOS GmbH, Cimbernstr. 51, Germany 81377 Muenchen, Phone +49 89 71 01 93 40, Fax +49 89 71 01 93 41
Hi,
You can use the ux2dos function if it exists on your system (ux2dos
originalfile >newfile) to convert a text file created with unix style line
terminations to dos style line terminations.
Don
-----Original Message-----
From: Sano B Rutsen [mailto:heiko@edsamail.com.ph]
Sent: Saturday, September 22, 2001 21:52
To: samba
Subject: creating batch file for logon script...
I have a 6 computers home network and 1 one them is acting
as a file server that authenticates usersfor domain logons.
I read a samba book about creating a dos batch script that
would automatically mount the users home directory in the
drive "n:", the script conatins the following lines...
net use n: \\sambaserver\username /yes
** note: the file is saved in the /home/netlogon/username.bat**
** All users have their own batch file in the netlogon directory**
the problem is that whenever i create the batch file in linux
using vi or any text editor, the script cannot be executed and,
my friend told me that i need a program that would convert the
batch script created in linux to have dos commands. Does anyone
of such package/program? Or does anyone know an easier way to do
this?
As of now i have to create all the scripts for all the users in notepad,
so that it can be executed, then copy it to the the netllogon directory
of my samba server.
Thanx in advance!!!
Best regards,
Heiko
__________________________________
www.edsamail.com
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
Many thanx to all the GUYS who help me out!!! I was finally able to download a program that would convert a file created in linux into a format. The programs name was "tofrodos-1.4.tar.gz" ftp://sunsite.unc.edu/pub/Linux/utils/text/tofrodos-1.4.tar.gz Thank you so much for your expertise and unlimited patience and generosiy!!! - Heiko __________________________________ www.edsamail.com
I agree with you, but then im planning to write a script that would automate the creation of the batch file, so that every time I have to add a user i dont have to manually create the file in notepad for all the users, just to copy it to the linux box. This way everytime i add a user for samba, a dos formatted script is automatically created without leaving my linux box,(very convenient if I have many users). But then again, I can see your point. Im doing this for a home network with no more than 20 users... hehe... Anyways, i like doing things for fun. Thanx! Best Regards, Sano =?iso-8859-1?Q?Wilmar_P=E9rez?= wrote:>Hi Sano > >Well, your friend's right. But you don't need any other program. You >just've got to edit the file in a DOS or Windows plain text editor and the >send it to the Linux box, that's it. > >Bye__________________________________ www.edsamail.com