cp command problem in script
Hi,
I have som problem in using cp command in shell script. Please see the followoing script, Code:
#!/bin/sh -f Code:
[root@cdrwebserver cdrp2p]# ./cp.sh |
perhaps you need a / between ${dir_temp} and *.unl:
Code:
cp /ppscdr/cdrp2p/temp/${dir_temp}/*.unl /ppscdr/cdrp2p/${dir_temp} |
no this ${dir_temp}*.unl mean the file need to copy.
|
Make
#!/bin/sh -f to this: #!/bin/sh And this: cp /ppscdr/cdrp2p/temp/${dir_temp}*.unl /ppscdr/cdrp2p/${dir_temp} to this: cp -r /ppscdr/cdrp2p/temp/${dir_temp}*.unl /ppscdr/cdrp2p/${dir_temp} |
All times are GMT -5. The time now is 02:13 AM. |