dos files in lynux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers dos files in lynux
# 1  
Old 06-29-2005
dos files in lynux

Hi..

I have a batch file in lynux where i have a copy command written..then i copied this batch file and run on the ms dos machine..but when i run this batch file its coming bad command or file name..i opened this with notepad then some junk characters are seen..vat i shoud do to doscp this file from lynux? or is there any command like unixt2dos or so? plz help..

with regards,
# 2  
Old 06-29-2005
Yes there is unix2dos and dos2unix available on linux. Probably just before transferring your file to windows, you can do a unix2dos on the linux m/c itself.
# 3  
Old 06-29-2005
unix2dos

Hi..

how to give the command? plz help me am new to this lynux thing..at the $ prompt, i gave unix2dos myfile, its coming bash: unix2dos: command not found..and when i typed man unix2dos its giving no manual entry for unix2dos..

plz plz help!!
# 4  
Old 06-29-2005
The reason could be the PATH settings.

Try this.

Code:
/usr/bin/unix2dos myfile

If you still encounter the same issue,

then try a

Code:
whereis unix2dos

It should give you some results. Try the first unix2dos in the result

-vino
# 5  
Old 06-29-2005
hi.. i still have the pblm..

when i gave whereis unix2dos it is giving unix2dos: only..vats dis mean? where is it stored..and after going to /usr/bin and gave ls unix2dos it is telling no such files/command or so..pls tell me what to do?

with thanx,
# 6  
Old 06-29-2005
Post the results of

Code:
uname -a

Possibly unix2dos could be in some other directory.

-vino
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Deleting all files containing string (WINDOWS DOS)

So I want to skim through all folders (ongoing from the curr dir) and delete all files that contain the string: "in conflikt standing copy". Is this possible WITH DOS ? (1 Reply)
Discussion started by: pasc
1 Replies

2. Shell Programming and Scripting

HowTo translate KSH Scripts to DOS Batch Files ?

Hi there, in near future I have to change my work surrounding from HP UNIX to Windows Vista (great to get rid of old hardware :), but bad to loose UNIX :( ). As I heavily use KSH scripts to do my job, I was wondering, if there is any HowTo available, supporting me in re-writing the scripts to... (4 Replies)
Discussion started by: Joe-K7
4 Replies

3. Shell Programming and Scripting

removing extra files in dos

Hi, I have same file by name i want to keep only access file and want to delete rest. This is specific to DOS only. Any idea of doing this. I tried so many options but none worked for me. Thanks Namish (11 Replies)
Discussion started by: namishtiwari
11 Replies

4. Linux

dos-path / un-dos-path compatibility with cygwin

Hello ; I have a problem running some script on dos . when i run : C: ls /temp ls: cannot access /temp: No such file or directory but when i run C: ls \temp windriver backup remotebackup also when i run C: ls temp windriver backup remotebackup The... (4 Replies)
Discussion started by: mulder20
4 Replies

5. UNIX for Dummies Questions & Answers

Copy files from CDROM to DOS Directory

Hi Everyone, :) Could someone PLEASE tell me how to copy some DOS files from a CDROM to a DOS readable directory in UNIX. I imagine that sounds strange, but that's what I need to do. I am somewhat familiar with... Inserting the CDROM mount /mnt/cdrom ls /mnt/cdrom eject /mnt/cdrom... (3 Replies)
Discussion started by: greystoke
3 Replies

6. Shell Programming and Scripting

Converting Shell script to Dos batch files

Hi friends! I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me. (1 Reply)
Discussion started by: darwinkna
1 Replies

7. Windows & DOS: Issues & Discussions

What if I have a really, really, really, old DOS?

Lately I've been trying to fix a 1991 Packard Bell, it's been running fine, but it's eating my memory for fun and taking away my pages. Is it worth my time trying to fix it, and is it possible to put new programs on it? thank you (9 Replies)
Discussion started by: Saz43
9 Replies

8. UNIX for Dummies Questions & Answers

Deleting Unix files from DOS

I have a DOS script on Windows NT that uses FTP to connect to a Unix server and to copy files to the WinNT. So far, so good. Now I want to delete those files on Unix afterwards but I'm unable to delete all files in the directory. How can I delete all the files on Unix from where i did ftp all... (3 Replies)
Discussion started by: vidireporting
3 Replies

9. UNIX for Dummies Questions & Answers

Compressing files from DOS to Unix

As the title sugests I need to compress files from DOS to Unix. The files should be in .Z format, as created using 'compress' in an Unix environment. Ligs (2 Replies)
Discussion started by: ligs
2 Replies

10. UNIX for Dummies Questions & Answers

A problem regarding compiling C prog. in lynux ...

Hi mates, I am using Mandrake 7.1. I am trying to compile my file let is say Firstc.c file. It compiles it without any problem and creates the a.out file too. But when i am trying to execute the a.out file it brings the error: "bash: a.out: command not found!" ... i don't know what is the... (1 Reply)
Discussion started by: abdul
1 Replies
Login or Register to Ask a Question