Commands not working in script file

Hi All,
I have created a shell script having some general copying and moving commands. Commands are working fine in Shell but while executing the shell script it is showing an error

mv: cannot stat `/apps/orarpt/in/*': No such file or directory 

command is

mv $IN_DIR* $ARCHIVE_DIR

where IN_DIR is like /users/amit/sourcefile/
ARCHIVE_DIR = /users/amit/archive/

on shell when i used these variables with the same value and command
without a single change they are working fine but not in script
so please help me.
Thanks in advance

modify the arguments to your move command in this way:

mv ${IN_DIR}* ${ARCHIVE_DIR}
IN_DIR is like /users/amit/sourcefile/ 
ARCHIVE_DIR = /users/amit/archive/

What is the script meant to do? Are you trying to move all the files in the directory ${IN_DIR} to the directory ${ARCHIVE_DIR} or something else?

The error message suggests that you are somehow trying to move system directories around.
Be very careful. An "*" is a very powerfile character in shell.

Please post the exact script, mentioning what directory you were in at the time it ran. Is cron involved?

Hi All,
Thanks for your suggestion,
I think i got the solution, its in the assigning of address variables
I should use then like this
IN_DIR=$DESTINATION_DIR"in/"
where DESTINATION_DIR is like /***//sync/
and IN_DIR is inside DESTINATION_DIR /***/
/sync/in/
there is no system files there, only flat files and log files are there
Thank you very much

@maindola.amit
It would be advisible to post the proposed script before running the script. We could suggest ways to test the script to display what the script will do without actually moving the files.

Hi Methyl,
Sorry i didnt get you properly, what you want to say.
See here in this script what i was doing is that i have
to fetch some data from a ftp server and load it into
a local directory and then after processing the files in
local directory i have to move valid files to archive
directory.

Thanks for the suggestion, there are some more issues
i am facing so i would be very thankful to you if you could
suggest me working in right way. i will post them shortly.

Regards,
Amit Maindola