[QUOTE=gerard4143;1168075]Could you give use an example of what the filename looks like after its been modified.[/QUOTE]

File name will be like

TESTFILE#P129GDN1326S43

when we put file.

HI
Thanks for ur reply.

Hi
I want to return a value from shell script to java code? That value may be a file name or any string. Is it possible? If yes, then how to do it? Can I get any steps or API's for that.

Thanks
Abhay

Hi
Through shell script we put a file on remote sever.
After putting file on that server it goes into inbox folder and it appends a hash code to file name. So when getting back the same file from inbox folder it is giving me following error.

[COLOR="Red"] /inbox/TESTFILE*: No such file or directory.[/COLOR]

Here is my script
[COLOR="Green"][CODE]

!/bin/sh

FTP_USER='abhay'
FTP_PASS='amp123'
FILE_NAME="TESTFILE"
/usr/kerberos/bin/ftp -vni 192.168.1.322 <<EOC
user $FTP_USER $FTP_PASS
put $FILE_NAME
cd inbox
mget TESTFILE*
quit
bye
EOC [/CODE] [/COLOR]

So please help me regarding this.

Thanks
Abhay