#147 Odd behavior of download command in sync profile

closed
nobody
None
5
2005-10-21
2005-10-21
Anonymous
No

If I manually copy my file into a directory from the
command line
CODE
scp -P 23 -q root@mydomain.org:/home/fieldtrial.ics
/mnt/ide3/Documents/Pim_Files/myfieldtrial.ics

Then, this command works in the sync configure script:

Down
CODE
cp /mnt/ide3/Documents/Pim_Files/myfieldtrial.ics
/tmp/mycalendar.ics

Temp
CODE
/tmp/mycalendar.ics

Up
CODE
cp /tmp/mycalendar.ics
/mnt/ide3/Documents/Pim_Files/myfieldtrial.ics

However, this command set doesn't work:
Down
CODE
scp -P 23 -q root@mydomain.org:/home/fieldtrial.ics
/tmp/mycalendar.ics

Temp
CODE
/tmp/mycalendar.ics

Up
CODE
scp -P 23 -q /tmp/mycalendar.ics
root@mydomain.org:/home/fieldtrial.ics

On the other hand, if I put the download command into a
script such as below, the command works fine"

CODE
#!/bin/sh
scp -P 23 -q root@mydomain.org:/home/fieldtrial.ics
/tmp/mycalendar.ics

I save the script as
/mnt/ide3/usr/local/bin/fieldtrialdown.sh

I can then get things to work with the following commands

down
CODE
/mnt/ide3/usr/local/bin/fieldtrialdown.sh

temp
CODE
/tmp/mycalendar.ics

up
CODE
scp -P 23 -q /tmp/mycalendar.ics
root@mydomain.org:/home/fieldtrial.ics

If I don't use the script, the download command gives
me an error message, even though the file is downloaded
without issue. The upload command does not require a
script.

I have posted more details of the problem on the oesf
forums here:
http://www.oesf.org/forums/index.php?showtopic=15601

Discussion

  • zautrix
    zautrix
    2005-10-21

    Logged In: YES
    user_id=994499

    Sorry, cannot help here. I hate command line commands ...

     
  • zautrix
    zautrix
    2005-10-21

    • status: open --> closed