I ran across this script and am hoping what I'm encountering can be easily overcome because this will be invaluable in a server migration I'm working on. I'm able to connect to my ftp server and it logs in. I'm using
to initiate the script. I get reasonable output for everything in my main directory, then it begins on the sub directories. My first subdirectory is BeTheBoss and it has a subdirectory of images, and HardFeed seems to get through those fine. The 2nd subdirectory is where I run into trouble. I get the following output:
and the script aborts. My directory tree looks something like this:
From the looks of it it's using Binder as a subdirectory of BeTheBoss, but I'm not quite sure why. I'm going to try to dig through the script and solve it myself, but I don't know if I have quite enough shell scripting background to manage it.f
Thanks in advance if you beat me to the answer; if I find the fix I'll post back to this forum.
My only guess is that your version of ksh is not handling recursion correctly and is getting lost. I would check to see if any patches to ksh are available.
I checked for updates to ksh and I have the lastest versions installed. I'm using SuSE 10.3. Not sure why I'm having trouble, but it's definitely unfortunate. I was really hoping this would save me time in my attempts to migrate my server.
I read a couple other posts and someone suggested ncftp as a possible alternative. It actually did what I needed. Too bad, HardFeed looked promising, but I'm not sure what was causing the recursion trouble.
Has anyone had success in using HardFeed with Novell. I am currently trying to find ways to backup certain directories on my Novell server. I am wanting to do a one time full back up and then back up just what was changed. I like the -f switch in HardFeed using the timestamp. I have got it up and going but I get the following errors (full command in red) when I try to do a "ksh HardFeed -rdfs novell user /VOL1/test".
mgmcelwee@ROM1BU2:/shared$ ksh HardFeed -rdfs novell mgmcelwee /VOL1/test
password -
WARNING: badly formatted line in directory listing for:
- [RWCEAFMS] mgmcelwee 4 Aug 21 10:57 ./New Text Document.txt
attempting outside-to-inside scan
ERROR: outside-to-inside scan has also failed
giving up on:
- [RWCEAFMS] mgmcelwee 4 Aug 21 10:57 ./New Text Document.txt
WARNING: badly formatted line in directory listing for:
d [RWCEAFMS] mgmcelwee 512 Aug 21 11:22 ./New Folder
attempting outside-to-inside scan
ERROR: outside-to-inside scan has also failed
giving up on:
d [RWCEAFMS] mgmcelwee 512 Aug 21 11:22 ./New Folder
WARNING: badly formatted line in directory listing for:
d [RWCEAFMS] mgmcelwee 512 Aug 21 11:22 ./New Folder (2)
attempting outside-to-inside scan
ERROR: outside-to-inside scan has also failed
giving up on:
d [RWCEAFMS] mgmcelwee 512 Aug 21 11:22 ./New Folder (2)
mgmcelwee@ROM1BU2:/shared$
It appears to me that the directory structure of Novell is not reckonized by HardFeed. Does anyone know how to get this working?
before posting, I have tried to find my answer elsewhere. no luck.
I need to find a file buried in a folder somewhere.
Master folder has 10 sub folders.
each sub folder has folders too.
I found this but it does nothing
I am on Mac and use Applescript.
do shell script "find... (2 Replies)
Could someone help me in recursive search and ftp'ing the files to remote server?
The host machine will have
/dir1/dira/list_of_files1
/dir1/dirb/list_of_files2
/dir1/dirc/list_of_files3
.
.
.
so., I need to search from dir1 recursively (only one level down) and find all the files that... (1 Reply)
Hi all,
I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice?
thanks in advance! (13 Replies)
Hello,
I need to transfer files from Serve1 to Server2. Previously I was using scp command. Now I have to use sftp (due to audit issues). The problem with sftp is (atleast to my level of knowledge) we cannot transfer dirs (and files within that dir).
Is there a way to solve this? Looks like... (1 Reply)
In the ls command, -t option and -R option dont work simultaneously.
ls -t ---> lists the files with sorting based on file date
ls -R ---> lists the files recursively.
How to make utilize both in the same command.?
I want to sort the recursive files listing.. (1 Reply)
I wrote a shell script (AIX) to extract the file "/rep1/toto" from all the hosts referred in a list and send them to one local directory named ~/$host-$file with the hostname as prefix
rcp -p user@host:/rep1/$file ~/$host-$file
where file = toto ==> it works !
I would do the same thing... (6 Replies)
Problem:
It will not advance to the next user in the list. It always dies right after it sends the 2/2 files from the first users dir.
$USERLIST="/export/home/mxdooley/perl_ftp/userlist";
$USER_DIR="/export/home/mxdooley/perl_ftp/homes";... (2 Replies)
I run the following command in some of my folders... and ended up with a huge mess!!
find . -type f -exec perl -e 's/blabla/zzzxxxx/gi' -p -i.bak {} \;
I had to kill the process and later when I checked with one of my folders..
ls
vaditerm.dt.bak
vaditerm.dt.bak.bak... (2 Replies)
I am trying to write a recursive FTP script and have come to a point where I need to test if the file is either a normal ascii file or a directory. My question is how do I test if the file is either ascii or directory. (1 Reply)