The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh access mm00123 SUN Solaris 8 08-30-2007 04:12 AM
FTP Access sehgalniraj UNIX for Dummies Questions & Answers 3 08-26-2005 05:39 PM
How to access CD sam71 UNIX for Dummies Questions & Answers 2 07-20-2005 02:53 PM
cp: cannot access nguda Shell Programming and Scripting 4 11-07-2003 05:52 PM
Need help to access/mount so to access folder/files on a Remote System using Linux OS S.Vishwanath UNIX for Dummies Questions & Answers 2 07-30-2001 08:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-26-2008
HIEUNK HIEUNK is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
cp can not access

Dear friends,

I make an script as below: BackupLog.sh

#backup file
file_name1=PartsOrderLog.log
file_name1_bk=PartsOrderLog_bk.log
cp $file_name1 $file_name1_bk
#end


but when I run this script, It's occur error as " cp : can not access PartsOrderLog.log"

Unix O.S

Please help me if possible

Thanks
Hieunk
  #2 (permalink)  
Old 04-26-2008
hanu_oracle hanu_oracle is offline
Registered User
  
 

Join Date: Mar 2008
Location: MUMBAI, INDIA
Posts: 41
1. Give the Complete path to the <Souece File> and <Destination File>
2. Assign the Execute permission to your Script
  #3 (permalink)  
Old 04-26-2008
HIEUNK HIEUNK is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
I used chmod 777 command for assign the excute permission as you said.
source file, destinatiion file, and the script file are the same dir.
  #4 (permalink)  
Old 04-26-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,293
Do you have read permission to the file "PartsOrderLog.log"?
  #5 (permalink)  
Old 04-26-2008
HIEUNK HIEUNK is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 3
that mean the file "partsorderlog.log" was assign read permission or not?
  #6 (permalink)  
Old 04-26-2008
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,508
check that you have the files in your current directory .
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0