If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > error SCCS FILE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-04, 10:57
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
Angry error SCCS FILE

2 QUESTION

1)
i get this error when i try to get the file
servername> get 40608010.sch
ERROR [40608010.sch]:
Specify an SCCS file with this command.(co1)

2)
first 3 numbers are M(month) DD (DAY)
How do i pass a value from window batch file ???
__________________
bigfoots
Reply With Quote
  #2 (permalink)  
Old 06-30-04, 12:40
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Cool

Quote:
1)
i get this error when i try to get the file
servername> get 40608010.sch
ERROR [40608010.sch]:
Specify an SCCS file with this command.(co1)
'get' is an SCCS command, (Source Code Control System).

What is it you want to 'get'?
Maybe you are thinking about the ftp get?


Quote:
2)
first 3 numbers are M(month) DD (DAY)
How do i pass a value from window batch file ???
Pass where?
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Last edited by LKBrwn_DBA; 06-30-04 at 12:47.
Reply With Quote
  #3 (permalink)  
Old 06-30-04, 13:57
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
Arrow

i want to download files from unix to window machine each day i run a batch file (which pass the date )
The files are name e.g 62819009.sch meaning (6 month and 28 day)
There are 300 files for a particular date
My batch file contains the following

dir %1?????.sch /o-s-----------------------------------to pass the date to batch file
ftp -i -s:\\servername\directroyname\viccopy.txt miamivic---------------------to call a txt file that has unix command



My viccopy contains the following commands

username
password
cd /usr/viis/conf/NMI/scheds
mget %1?????.sch----------------------------------how do i pass date to unix,,, this does not work
bye



any other way to get this file


salimt
__________________
bigfoots
Reply With Quote
  #4 (permalink)  
Old 06-30-04, 14:48
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Wink

Try this:

1) Create a file with the username/password like:

File name: \\servername\directroyname\FTPpw.txt which would contain:
username
password
cd /usr/viis/conf/NMI/scheds

2) Your batch file will look something like this:
Code:
copy /Y \\servername\directroyname\FTPpw.txt  \\servername\directroyname\viccopy.txt
echo mget %1?????.sch >>\\servername\directroyname\viccopy.txt
echo bye >>\\servername\directroyname\viccopy.txt
ftp -i -s:\\servername\directroyname\viccopy.txt miamivic


any other way to get this file?
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Last edited by LKBrwn_DBA; 07-01-04 at 11:06.
Reply With Quote
  #5 (permalink)  
Old 06-30-04, 18:09
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
there are about 300 files to get (small)

so i have to mget all 300 from unix to windows


i have batch file on windows ( i think u got that right)

though its still not working
__________________
bigfoots
Reply With Quote
  #6 (permalink)  
Old 06-30-04, 18:26
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Exclamation

Quote:
Originally Posted by sjumma
there are about 300 files to get (small)
so i have to mget all 300 from unix to windows
i have batch file on windows ( i think u got that right)
though its still not working
Post your batch file and any other related files
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Last edited by LKBrwn_DBA; 06-30-04 at 18:33.
Reply With Quote
  #7 (permalink)  
Old 07-01-04, 16:19
sjumma sjumma is offline
Registered User
 
Join Date: Oct 2003
Posts: 232
works fine Thanks for your help

One more question

how do i suppress message

of

opening port transferring file

transfer complete

300 times
__________________
bigfoots
Reply With Quote
  #8 (permalink)  
Old 07-01-04, 16:28
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Cool

Try redirecting the output from ftp:

ftp -i -s:\\servername\directroyname\viccopy.txt miamivic >\temp\MyFTP.log

Also, instead you could add the following to the FTPpw.txt file:
verbose

__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Last edited by LKBrwn_DBA; 07-01-04 at 17:06.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On