LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2012, 12:30 AM   #1
gautam32656
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Smile 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

Last edited by gautam32656; 04-17-2012 at 12:36 AM.
 
Old 04-17-2012, 12:44 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
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?
 
Old 04-17-2012, 12:45 AM   #3
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
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.
 
Old 04-17-2012, 12:59 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 04-17-2012, 10:32 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting to copy FTP files between servers jfrancis Linux - Newbie 5 09-15-2011 10:55 AM
[SOLVED] Bash Scripting - Output as Multiple Files zer0signal Programming 14 01-26-2011 06:43 PM
Creating a script to move or copy files into multiple directories below the files matthes138 Linux - Newbie 5 08-25-2009 04:57 PM
Shell scripting: How to write to multiple files? Micro420 Programming 14 05-19-2007 03:41 AM
unable to copy files to pen drive(size problem)..pls help anant Linux - Newbie 8 12-28-2006 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration