November 22, 2024, 02:37:04 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: shell script and binary together  (Read 5926 times)

Offline ganeshgore81

  • New Member
  • Posts: 3
shell script and binary together
« on: January 20, 2006, 01:08:14 PM »
Hi friends,

I am running shell script in which the binary is at the end will execute later
can anyone tell me that how it is possible i saw one shell script like this

that is j2sdk-1_3_0-rc1-linux-rpm.sh
just download and check it how it is done
pure text and binary data is in one file we get an extracted rpm later after executiing the script. if anyone knows plese tell me that.

Thank You

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
shell script and binary together
« Reply #1 on: January 23, 2006, 05:03:42 PM »
Dear ganeshgore81,

U don't have to see, shell script is very helpful, and it's all about imagination and creativity helps u.

When u r download a file be it binary/text, all u need to know is:

1. What program am i using to download?
-FTP
-SCP
-SFTP

2. So u found out the right tool u wanna use to download?

3. Okay, now understand the sequence to download using console mode

4. What else, put the commands in the shell script instead of u do it urself.

5. Add the Integrity/Checksum on the file. U can use:
- MD5SUM for example
to do checksum on remote file & local file.

So finally, what do u really want?

For your information, u can also use "EXPECT" scripts to help u, if the application u use is too interactive.

http://expect.nist.gov/