LinuxQuestions.org
Help answer threads with 0 replies.
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, 01: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 01:36 AM.
 
Old 04-17-2012, 01:44 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 481

Rep: Reputation: 179Reputation: 179
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, 01: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, 01: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 11:32 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:55 AM
[SOLVED] Bash Scripting - Output as Multiple Files zer0signal Programming 14 01-26-2011 07:43 PM
Creating a script to move or copy files into multiple directories below the files matthes138 Linux - Newbie 5 08-25-2009 05:57 PM
Shell scripting: How to write to multiple files? Micro420 Programming 14 05-19-2007 04:41 AM
unable to copy files to pen drive(size problem)..pls help anant Linux - Newbie 8 12-28-2006 11:51 AM


All times are GMT -5. The time now is 02:57 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration