Unix - Binary File

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unix - Binary File
# 1  
Old 06-22-2011
Unix - Binary File

Hi All,

I am newbie to this forum. I am also new to shell script world.

I don't understand the below shell script.

File Name: sendFile.sh

# This script invokes the Connect:Direct UNIX CLI
# and submits a process inline to copy a file to a remote
# node.
#  $1 is the source file.
#  $2 is the destination file.
#  $3 is the name of the remote node.
set -v
/opt/cdunix/ndm/bin/ndmcli  -x << EOJ
test process snode=$3
send    copy    from    (pnode
to      (snode


This script is being used to transfer the file from Unix to Windows.
But I don't see the FTP command in the code. How come it is possible? This is my first question.


I would like to know the file transfer mode (i.e either Binary or ASCII) used by Unix. what is the default mode used by unix?


Incase if the mode is 'ASCII', I would like to change the mode from ASCII to Binary. How to change it? what is the command used to change the mode?

Inputs are welcome!

# 2  
Old 06-22-2011
Hello Karthik,

"ndmcli" is doing the file transfer here. Google for it for more options and syntax of it.

# 3  
Old 06-22-2011

The script uses Connect Direct to transfer files.
It calls the command line interface and issues the commands to
/opt/cdunix/ndm/bin/ndmcliIf I re-call, if the transfer mode is not set, it defaults to binary.
You can check the Connect Direct documentation for more info.
# 4  
Old 07-06-2011
While sending the file from a unix server to a windows server using NDM, we are facing the below issue -
msgid=LSMI012E stext=The remote node was not found in the netmap.
NDM is installed in both the servers. user name configurations are done.
The remote node has been added in the netmap.cfg file.
But still we face this issue.
Any idea on this issue?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Binary pattern matching in UNIX

I think what I'm trying to do is pretty straightforward but I just can't find a way to do it. I'm trying to run a double pattern match in a three column file. If the first two columns match, I need to output the third. So in the file AAA BBB 1 BBC CCC 5 CCC DDD 7 DDD EEE 12 If the... (4 Replies)
Discussion started by: matthewndavies1
4 Replies

2. Shell Programming and Scripting

File conversion from Binary to ASCII though UNIX command

Hi All , I have a mainframe file which contains the data in EBCDIC format.I have downloaded this file from mainframe to windows in binary format(unreadable raw data).Now I want convert this file to ASCII format(readable format data) through Unix command.I have tried iconv but that is not working... (2 Replies)
Discussion started by: STCET22
2 Replies

3. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies

4. Emergency UNIX and Linux Support

Generate Info From a Unix Binary

We have a situation where a binary from our build system is failing in one specific flow but the same from dev works fine. We are sure that build system picks up the right libs and code, however we see a difference of 6000 bytes in both. (build - 6000 bytes = size of dev binary) Hence we would... (7 Replies)
Discussion started by: uunniixx
7 Replies

5. Shell Programming and Scripting

can UNIX scripting be converted into binary(executable)

hi i wanna ask that can UNIX scripts be converted into exe files?? if so, how?? and can these scripts be implemented using c++ and using their executable... ---------- Post updated at 02:33 PM ---------- Previous update was at 10:53 AM ---------- plz anybody reply.... and ya i want to... (5 Replies)
Discussion started by: umarbangash
5 Replies

6. UNIX for Dummies Questions & Answers

where is unix-screen-binary path location

hi all, i wanna ask where is unix-screen-binary path location? i cannot find it in /usr/bin or /bin or using man command thx before (3 Replies)
Discussion started by: venven
3 Replies

7. Shell Programming and Scripting

Editing Binary Files in Unix

Hi, Is there a way to edit BINARY files in Unix. Or even are there any commands (shellscript/perl) through which I can replace all the occurences of a string inside a BINARY file with another string ?? (1 Reply)
Discussion started by: cool.aquarian
1 Replies

8. UNIX for Dummies Questions & Answers

How to convert binary Unix file to text

Hi all, I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or... (5 Replies)
Discussion started by: user12345
5 Replies

9. Solaris

compiled binary file gives "cannot execute binary file"

Hi, I have two Solaris machines. 1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500 2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60 I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Discussion started by: scgupta
0 Replies

10. Shell Programming and Scripting

Binary and hex in unix

not much familiar with binary and hex calculation in script programming.... explaination: binary format control the parameter turned on or off in the program stored in hex mode, the question is: how to change 39e to 19e using the binary calculation(although i don't know the command for... (2 Replies)
Discussion started by: trynew
2 Replies
Login or Register to Ask a Question