LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to copy multiple files through scripting. Permissions problem? (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-copy-multiple-files-through-scripting-permissions-problem-940163/)

gautam32656 04-17-2012 12:30 AM

Unable to copy multiple files through scripting. Permissions problem?
 
File Name:File1.txt
SrcDir =.../system
File Permission user group directory File
f 0644 root sys etc/eco.conf
{SrcDir}/etc/eco1.conf

i have 100 file and directory i want to copy the eco1.conf to directory etc with eco.conf name.
i have declare as variable in script and taken file1 as input file.when i try with this i got error.

Thanks in advance

cliffordw 04-17-2012 12:44 AM

Hi there. What error do you get? This sounds like it might be permission based. As which user are you running the script, and what are the permissions on the etc directory?

gdejonge 04-17-2012 12:45 AM

Okay lets try this 1 step at a time.

You have written a script to copy some files. ?
Please post the script and the error message you get.

EricTRA 04-17-2012 12:59 AM

Hello and welcome to LinuxQuestions,

First of all you should use a descriptive title for your post. Just 'help me' is not drawing any attention to your problem. Aside from that you should provide as much information as possible if you want us to help you. Post your script and the exact error(s) you get when trying to run it. Be as verbose as possible in your problem description.

Looking forward to your participation in the forums. Have fun with Linux.

Kind regards,

Eric

colucix 04-17-2012 10:32 AM

Please use a descriptive title for your thread excluding words like 'urgent' or 'help'. Using a proper title makes it easier for members to help you. This thread has been reported for title modification. Please do not add replies that address the thread title.


All times are GMT -5. The time now is 03:23 PM.