isql?

Im using isql to access the sybase server.
Im using this syntax,
isql -w 130 -i in.txt -o out.txt
However, isql says it cant open in.txt. I assume this is because it cant find it. What path should this file be put at so that the isql can locate it?
CoatesAsked:
Who is Participating?
 
Victor SpiridonovConnect With a Mentor Commented:
It should be in the directory you runnning isql from , but I would still suggest to put full path, just to make sure you are using the file you intended to use. You can also use '<' filename instead of -i filename
0
 
CoatesAuthor Commented:
Ive tried using the full path. Ive also triied the following code.
isql -w 132 -i c:\in.txt -o c\:out.txt
This gives me an error
Cant find input file c:in.txt
Ive also tried -i /in.txt
-i c:/in.txt
0
 
Victor SpiridonovCommented:
Have you tried using '<' redirector ?
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
CoatesAuthor Commented:
I get another error using this syuntax:
ksh: c:\in.txt:cannot open
Am i using the correct path format?
Do i use a '\' or a '/'??
0
 
Victor SpiridonovCommented:
What operatin system do you use?
May be obvious, but happens: is the file realy exists? Do you have permission to read it?
0
 
CoatesAuthor Commented:
Im using windows 95
The file is a standard .txt file located on my c:\ directory
I am using telnet to access the Unix sybase server
isql < c:\in.txt >c:|out.txt
this is what ive just tried and got the same error!
0
 
Victor SpiridonovCommented:
If I correctly understood, you are trying to type this in telnet window. When you use a telnet, your computer emulates terminal, telnet doesn't know anything about your c: drive. and if you are using just in.txt this in.txt should be present not in your PC, but in the  UNIX server directory you are executing isql from.
0
 
CoatesAuthor Commented:
Is there any way to use a local input file??
0
 
Victor SpiridonovCommented:
No , unless there  is a Windows version  of isql, that you can install and run from you PC, not from telnet session.
0
 
CoatesAuthor Commented:
OK thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.