Using unix 'diff' command to publish iweb to non .mac server

It is a common problem that you can't upload incremental changes to a website a web server that is not a .mac. Recently I found that the unix (shell) 'diff -qr' works nicely for this.
However I can't seem to get this to work in automator. That is where I need some help.
What I did :
I have an iweb website in my directory
Documents/website
I made a second directory where I store my uploaded version of the website:
Documents/websiteonserver
Using a shell script I want to compare the differences between these two directories using the diff command in a shell script. When I run 'diff -qr websiteonserver website' in a terminal window, it gives a nice overview of which files are changed and which ones are new. When workin with iWeb this saves me a lot of time uploading my homepage to a non .mac server. I can only upload the changed files, which is usually only a few. Diff does not look at timestamps (which are useless in the iweb case) but it actually looks into a file and with the -q option it stops when it finds a difference. With the -r added (-qr) it also looks through all subdirectories and compares files with the same name.
I like to automate this process so that my wife can update our family homepage with just one mouseclick (or as few as possible)
Unfortunately the diff command in automator gives an error, and there's no info on why it does this.
The commands I gave:
cd Documents
diff -qr websiteonserver website
(using PWD i verified that the path is correct like this). The only stumbling block for automator seems to be the diff command. Anybody any suggestions on this?
The next challenge is to take the diff output and use that to upload only changed/new files to a ftp server.
Any help / ideas are welcome
Greetings,
Adriaan

Dear Cyclosaurus,
I used a single command as us specified. It really helped to add the path to the directories I wanted to compare. So now at least I got it two work partly:
It seems to work only if I compare two files. Comparing directories still does not work. Maybe diff generates some kind of error code when doing this??? It does not do that in the shell.
If I compare all files in directories + subdirectories , the workflow does not work. It seems as if it only accepts a single output line or so from the diff function. If there is more output (or maybe some newline character) the workflow halts. Very peculiar.
mmm.... I will try to make a shell script which I can run in automator. In the script file I will then generate a txt file. Then the automator can run the script and then it can open the resulting file in a text editor. See if that works.
mmm nope. I made a script like this:
#!/bin/bash
diff -qr ~/Documents/websiteon_theserver/ ~/Documents/website/ > ~/Documents/logfile.txt
I modified the atributes to executable and I could run it from the command line. The logfile.txt was created and has the correct info. I could not run it from automator...
I did copy the last line from the script into automator. And also there it does create the logfile, but the automator still says there was an error and stops.
maybe I should try Applescript, were it not that I am totally clueless on that language...

Similar Messages

  • Publishing to a non .mac server

    I am using iweb and fetch to upload to godaddy servers. Im having permission problems. I sign in fine but cannot upload even one file. can anyone help

    You need to talk to godaddy about it.

  • Comments Not Working on Website - published to non-.mac server

    Hi there. I've read on a few non-apple sites of users having trouble with Comments and some other functions of their websites, built in iWeb, not working when they publish to a non-.mac server. I've built my website in iWeb, published via CyberDuck to a BlueHost server -- but now users can not post comments on my blog.
    Has anyone found a way to fix this issue??
    It seems incredibly pointless to even now have my own domain. I'm super close to giving up on iWeb all together because of this ridiculous issue.
    Thanks in advance.
    www.kellerowski.com

    Unfortunately, blog comments are a MobileMe only feature along with the hit counter etc.
    You have to publish to MobileMe if you want these features.
    There are workarounds however. If you want to continue to use an iWeb blog, then you can use a third party comments feature. Take a look here http://www.intensedebate.com. It is free to set up on the site and all you then do is copy and paste the code into an html snippet on the page you want comments to appear in whatever format you want them.
    Your other option is to ditch iWeb and if it is just a blog you want, use something like http://www.wordpress.com. This is free and you don't need a domain name and the blog is published on WordPress servers.
    Your other option for a blog is http://www.posterous.com.
    The iWeb blog system is not that good, so you might look into changing if a blog is what you want rather than a website.

  • Non mac server publishing

    When publishing to a non .mac server certain features do not work... any way to get them to work. rss for one
    Are there any other features that I need to know about that may not work?
    Thanks
    Mac Book Pro   Mac OS X (10.4.8)   Iweb 1.1.2

    RSS should definitely work. It's just a matter of entering the correct domain name in the "Publish to Folder" dialog box and also uploading the correct items to your server. I can help you with this if you desire.
    As far as other .Mac only features that won't work for you... these include blog commenting, search, password protection, the enhanced photo template slideshows, .Mac counters, etc.
    Of course, you can find replacements for all of these features...
    Blog comments: iComment/Haloscan combination from Chad Brantley
    Search: Google site search box
    Password Protection: htaccess files
    Slideshows: take your pick
    Hit counters: StatCounter.com

  • Publishing to a non Mac friendly server + network

    I am sure this has been asked countless times - feel free to point me to the correct discussion forum-, I am having trouble publishing my Iweb site in to a non .Mac server. Any ideas?

    In the past 24 hours I was able to publish my domain
    to the folder with the URL I was given. The webmaster
    is asking me which of the files uploaded is the one
    that links to the webpage. Clearly I am missing
    something when using Iweb with a non .Mac server. Any
    tips and ideas?
    When you "publish to a folder" from iWeb you should get a folder on your hard drive which has the same name as your site does inside iWeb, plus an index.html file. You then use ftp to upload these two items only to your server space run by your webmaster. Is that what you did? If not, what did you do? I don't understand what you mean when you say "published my domain to the folder with the URL I was given."
    Did you read the link provided earlier? Do you have questions about it?
    What server are you using, and what ftp program? What is your url supposed to be?

  • Using iWeb to publish to a non.mac domain

    Can I use iweb to develop a web site and publish to a domain that is not .mac?
    Or can I host a non.mac domain on .mac?

    Can I use iweb to develop a web site and publish to a
    domain that is not .mac?
    Yes, you can. But not directly from iWeb. You will develop your pages in iWeb but the choose the "Publish to Folder" option. This will put all the files necessary for your website in a folder on your hard drive. You will then need to use an FTP program to upload the site files to your 3rd party web host.
    Or can I host a non.mac domain on .mac?
    Yes, you can also do this. You can do your pages in iWeb and then "Publish to .Mac". Then you can use "Domain Forwarding" available from your registrar or some other redirecting html to forward people who type in your domain name to you .Mac iWeb URL.
    Either method will work fine. You will lose out on .Mac specific features (like slideshows, counters, passwords, comments, search) if you host your pages on a 3rd party web host. Also you lose the ability to do incremental uploads (uploading only changed pages) directly from iWeb if you're not using .Mac.
    Good luck to you. If this has been useful information to you, please do me a favor and click the "solved" or "helpful" buttons in the title bar of this reply. Thanks.

  • Accessing tape device from Terminal program using UNIX tar command

    I am trying to create some tape backups of very large files (.dmg images) using the UNIX tar command.
    I have a 72GB HP 4mm DAT USB drive, which shows up in the system profiler as:
    DAT72 USB Tape:
    Version: 30.30
    Bus Power (mA): 500
    Speed: Up to 480 Mb/sec
    Manufacturer: Hewlett Packard
    Product ID: 0x0125
    Serial Number: 4855310528334645
    Vendor ID: 0x03f0
    But I do not see the device in the /dev/ directory (see below).
    Is there a way I can determine the UNIX device name?
    Or must I locate and load a driver for this DAT drive?
    Thank you
    Jeff Cameron
    Last login: Mon Jun 9 20:14:36 on ttys000
    caladan:~ jeff$ ls /dev/
    appleAE0 ptyq7 ptyuc ttyp0 ttyt4
    autofs ptyq8 ptyud ttyp1 ttyt5
    autofs_control ptyq9 ptyue ttyp2 ttyt6
    autofs_nowait ptyqa ptyuf ttyp3 ttyt7
    bpf0 ptyqb ptyv0 ttyp4 ttyt8
    bpf1 ptyqc ptyv1 ttyp5 ttyt9
    bpf2 ptyqd ptyv2 ttyp6 ttyta
    bpf3 ptyqe ptyv3 ttyp7 ttytb
    console ptyqf ptyv4 ttyp8 ttytc
    cu.Bluetooth-Modem ptyr0 ptyv5 ttyp9 ttytd
    cu.Bluetooth-PDA-Sync ptyr1 ptyv6 ttypa ttyte
    cu.Palm ptyr2 ptyv7 ttypb ttytf
    cu.modem ptyr3 ptyv8 ttypc ttyu0
    disk0 ptyr4 ptyv9 ttypd ttyu1
    disk0s1 ptyr5 ptyva ttype ttyu2
    disk0s3 ptyr6 ptyvb ttypf ttyu3
    disk1 ptyr7 ptyvc ttyq0 ttyu4
    disk1s1 ptyr8 ptyvd ttyq1 ttyu5
    disk1s3 ptyr9 ptyve ttyq2 ttyu6
    disk1s5 ptyra ptyvf ttyq3 ttyu7
    disk2 ptyrb ptyw0 ttyq4 ttyu8
    disk2s1 ptyrc ptyw1 ttyq5 ttyu9
    disk2s10 ptyrd ptyw2 ttyq6 ttyua
    disk2s11 ptyre ptyw3 ttyq7 ttyub
    disk2s2 ptyrf ptyw4 ttyq8 ttyuc
    disk2s3 ptys0 ptyw5 ttyq9 ttyud
    disk2s4 ptys1 ptyw6 ttyqa ttyue
    disk2s5 ptys2 ptyw7 ttyqb ttyuf
    disk2s6 ptys3 ptyw8 ttyqc ttyv0
    disk2s7 ptys4 ptyw9 ttyqd ttyv1
    disk2s8 ptys5 ptywa ttyqe ttyv2
    disk3 ptys6 ptywb ttyqf ttyv3
    disk3s1 ptys7 ptywc ttyr0 ttyv4
    disk3s3 ptys8 ptywd ttyr1 ttyv5
    disk3s5 ptys9 ptywe ttyr2 ttyv6
    dtrace ptysa ptywf ttyr3 ttyv7
    dtracehelper ptysb random ttyr4 ttyv8
    fbt ptysc rdisk0 ttyr5 ttyv9
    fd ptysd rdisk0s1 ttyr6 ttyva
    fsevents ptyse rdisk0s3 ttyr7 ttyvb
    klog ptysf rdisk1 ttyr8 ttyvc
    lockstat ptyt0 rdisk1s1 ttyr9 ttyvd
    machtrace ptyt1 rdisk1s3 ttyra ttyve
    null ptyt2 rdisk1s5 ttyrb ttyvf
    profile ptyt3 rdisk2 ttyrc ttyw0
    ptmx ptyt4 rdisk2s1 ttyrd ttyw1
    ptyp0 ptyt5 rdisk2s10 ttyre ttyw2
    ptyp1 ptyt6 rdisk2s11 ttyrf ttyw3
    ptyp2 ptyt7 rdisk2s2 ttys0 ttyw4
    ptyp3 ptyt8 rdisk2s3 ttys000 ttyw5
    ptyp4 ptyt9 rdisk2s4 ttys1 ttyw6
    ptyp5 ptyta rdisk2s5 ttys2 ttyw7
    ptyp6 ptytb rdisk2s6 ttys3 ttyw8
    ptyp7 ptytc rdisk2s7 ttys4 ttyw9
    ptyp8 ptytd rdisk2s8 ttys5 ttywa
    ptyp9 ptyte rdisk3 ttys6 ttywb
    ptypa ptytf rdisk3s1 ttys7 ttywc
    ptypb ptyu0 rdisk3s3 ttys8 ttywd
    ptypc ptyu1 rdisk3s5 ttys9 ttywe
    ptypd ptyu2 sdt ttysa ttywf
    ptype ptyu3 stderr ttysb urandom
    ptypf ptyu4 stdin ttysc vn0
    ptyq0 ptyu5 stdout ttysd vn1
    ptyq1 ptyu6 systrace ttyse vn2
    ptyq2 ptyu7 tty ttysf vn3
    ptyq3 ptyu8 tty.Bluetooth-Modem ttyt0 zero
    ptyq4 ptyu9 tty.Bluetooth-PDA-Sync ttyt1
    ptyq5 ptyua tty.Palm ttyt2
    ptyq6 ptyub tty.modem ttyt3
    caladan:~ jeff$ logout

    I downloaded the BRU LE 30 day evaluation, and my first impression is favorable. I still need to perform a bit of testing. The HP drive I have does 36 GB per tape (72 at 50% hardware compression). My first attempt was to back up a single 22 GB .dmg file. Even with no compression it should have fit on one DAT tape, but after backing up 90% of the 22 GB it asked for a second tape. I still have to do more testing, but I very much appreciate the point in the very promising direction.
    I will reply again to this thread with my results.
    Jeff Cameron

  • Anyone know how to publish iWeb site to .mac groups?

    Hi all
    This is my first message here... So... Be patient plz
    I'm afraid that I know the answer, but I hope that someone can tell me(us) more...
    Is it true that it is NOT possible to publish a site from iWeb to a .mac group?
    Why this feature is missing???
    I've heard that this was present in iWeb 07. Is it true?
    Anyone knows if it will be available in a future patch??
    sigh, I've just buyed a .mac accounts to publish project for private groups... :(((
    Thanks to all for support. Excuse me for my bad English
    Mayran

    It's Sad.
    Groups are, in my opinion, the best feature of .mac account.
    Project, club, private site of people... great things.
    It's why I have payed for this account.
    But if you can't use the integration of mac to build up information
    it's very useless and to me it doesn't appear too professional
    from apple to cut off this feature.
    My fault, I haven't seen this particular information.
    Anyway thanks for the information
    I hope apple will reintegrate this feature
    Greetings from Italy
    Mayran

  • Get iWeb to publish as .htm to non-.mac server

    Hello,
    I've created a website and now need to publish it to my university server to simply saving it in a folder. The problem I'm having is that the pages all need to be .htm not .html for some reason and I can't find a way to make iWeb do that...
    Has anyone else had experience of using iWeb to publish in this way?
    Cheers
    James

    That could be tricky. Simply renaming the files would not be an option, since you'd then have broken links pointing to the old .html filenames.
    Are you sure you need to have the file extensions as .htm? In other words, have you tried uploading a test .html file and confirming whether or not it can be viewed via web browser? Older versions of Windows (like, *way back* in the day) required filenames to follow the 8.3 naming convention, but I can't imagine your university server is running something that old.
    -Jon

  • Publishing to a non .mac site

    Hi, is there a step by step procedure to publish a site to a non .mac host?
    Thanks

    I changed the name, uploaded the folder, and still
    nothing.
    When you look at your web space with your ftp program, you should see two items: index.html and a folder called Kiiskakuna. Do you?
    When I hit publish,
    it automatically publishes to iMac. I have to use
    Cyberduck to upload to the other server. Is this
    correct?
    Yes. You do not hit publish, you use the menu item to publish to a folder. It is a good idea to select your desktop as the place to publish to so you don't get mixed up. After publishing that way, you should see two items on your desktop, index.html and a folder called Kiiskakuna. You use Cyberduck to upload these to your web space.
    Right now it is clear that there is no index.html in your web space, so you must not have uploaded that. It must be outside the folder Kiiskakuna and it must be the one that iWeb created outside the folder Kiiskakuna. There is another one inside the folder, but that and everything else there should get uploaded automatically when you upload the folder.
    What is the name of the topmost page of your site inside the iWeb app?

  • Using iWeb to publish to a non mac account

    I guess the question is in the subject.
    I'm just wondering if it is possible to use iWeb to create your website, but then send it to a different domain/server?

    nuorder72,
    Welcome to the discussions.
    Easily done. Create a new folder on your desktop, and name it for your site. From the file menu in iWeb, choose File/Publish to a folder..., and select this new folder. iWeb will deliever your site, in it's own folder, and the index.html file needed for the site. You will upload both of these as they are to your server, using an ftp client.
    Some good tips and more details on this can be found in these notes by Tom Gewecke.
    Mark

  • Expdb using Unix pipe command for max compression

    I think the answer to this is NO, but I thought I'd ask the questions anyway, in case some of the Oracle geniuses on this site have figured out a way around this.
    We have been using the existing exp/imp commands for years, due to the fact that we can pipe the output through a pre-setup file that will compress the data as it is written. Since we have moved onto the 10g and now the v11 software, we are starting to what to utilize the parallelism that is afforded in expdp, but don't want to deal with the space required for non-fully compressed exports that occurs with expdp.
    So the question is, has anyone figured out a way to use expdp and using 'on the fly' compression like you could do with the old exp utility on Unix boxes??
    Any help would be appreciated....

    Unfortunately, no--it has to do with the parallel nature of the file ops that prevents compression through a pipe. However, if you buy the Compression option in 11--you can compress on the fly.
    See this white paper.
    http://www.oracle.com/technology/products/database/utilities/pdf/datapump11g2007_quickstart.pdf
    Edited by: jdanton on Sep 2, 2008 3:12 PM

  • Using unix host command within plsql on aix

    On an aix platform Im trying to host out of a plsql procedure to
    use mail. I can only get the host command to work inside a blank
    .sql file. ie. first line must have the host command on it. If
    you try to imbed the host command within a procedure, the file
    will just sit there and nothing happens.
    null

    Jay,
    This forum is for Headstart related questions and experiences
    only. Please go to metalink.oracle.com to get more information on
    your problem.
    Regards,
    Lauri
    Jay Levasseur (guest) wrote:
    : On an aix platform Im trying to host out of a plsql procedure
    to
    : use mail. I can only get the host command to work inside a
    blank
    : .sql file. ie. first line must have the host command on it. If
    : you try to imbed the host command within a procedure, the file
    : will just sit there and nothing happens.
    null

  • Unable to publish iWeb pages to .Mac

    I have been using iWeb (version 1.1.2) quite happily for past two weeks and have successfully published to .Mac/Mobile Me. But today I have been having loads of trouble and have been unable to publish anything, although I can publish to a folder, which is of no use.
    When I try to publish I get the following types of messages:
    Publish error
    An error occurred while publishing file "/Web/Sites/iWeb/Site 5/Welcomefiles/navbaractive.png".
    or
    Publish error
    An error occurred while publishing file "navbar_active.png." Try choosing >Publish all
    Can anyone suggest a solution. This is driving me mad.
    Tony

    Let's not mince our words: the version of iWeb we are using is ****** and there is no help available anywhere on the Apple website. Check out my various posts on this topic. I am going to save my work to disks and will not renew my iDisk account in a couple of weeks.

  • Publishing iWeb site to .Mac

    Have just spent several days preparing the pages for what should be, my lovely website. As it is now complete, I am trying to publish it by clicking on "Publish All to .Mac" as it said on mac.com. Every time I try to publish I get the rolling "logging in to .Mac" bar at the top and a window asking me to either log on to .mac or to Join Now. I already have a .Mac account but if you click on Sign In, it just closes the window and the rolling bar down. I tried again and just left it running for over an hour but it did nothing. I have tried resetting my KeyChain Access and did a "Reset my Keychain". I also did a Keychain First Aid and it did a couple of repairs and is now fine. Tried publishing again, but up came the rolling "Logging in to .Mac" bar and the wretched "Sign In" window and that's as far as it goes. HELP !

    I have exactly the same problem. I renewed my account and it has stopped working. Now it says "your account will renewed in 0 days". It says "logging in to .mac" even though I'm already logged in, I can use my iDisk, send and receive mails, etc! I run a blog with a friend, and people are starting to demand more stuff, and I can't upload anything!!! Please, I beg you, help me out!

Maybe you are looking for

  • How to measure progress of file copy?

    One of the requirements for my AIR application is to copy large files from one location to another on the client computer. I've been using the copyToAsync() method in AIR, but unfortunately this does not trigger progress events. Copying gigabyte file

  • Form is not submitting while caling a confrim in from validation.

    Dear All, I am getting a typical issue in the application. the code is as shown below. <h:form id="registerForm" target="_top"> <h:inputText id="prmoCode" binding="#{Register_Backing.promoCd}" ></h:inputText> <h:commandButton onclick="return validate

  • Setting dynamic language for WD ABAP application iView

    Hi, I have created an iView for a WD ABAP application which runs with two languages, EN and FR. When I run this application with app parameter sap-language=EN or FR, it works fine in corresponding language. How do I set this in its portal iView so th

  • FCE video quailty and widescreen problems

    hello friends!! im having problems with my video quality... i seems really crappy! i know it might be my camera cause its a cheap canan zr100 but still, is there a setting i can change? or somthing, also my camera has a 16:9 widescreen, but if i film

  • Cannot load updates

    When ever I receive notification of available updates and I click on update the download goes through no trouble then the installing goes throughthe blue bar goes to within a fraction of completion and then i get an error message saying install could