Fully qualified means starting from /, so yes, you'd have to go back to the user's folder. I am not familiar with OS X file system layout, so I don't know if users is at the root, but I would start with / and work towards the folder where you want to store the reports. The advantage of doing it this way is that you can guarantee where the reports are written to no matter where you are (or the cron job is) when you run Report Magic.

To find out where your home directory is try either of these:

   echo $HOME
or
   cd ~
   pwd

Then use that as the beginning of the path where you want to write reports.

--
Jeremy Wadsack
Seven Simple Machines


James Coyle wrote:

I installed Report Magic via Fink, which puts all UNIX apps in the same folder, i.e. sw/share. In a perfect world, I'd like the Reports to go to the Documents folder in my home folder and NOT the relative jamescoy/Documents folder within Report Magic.

I'm a UNIX newbie, so please forgive what is probably an elementary question, but what sort of path i.e. "fully qualified, would I give to the report.ini file. Would I need to go all the way back to users/jamescoy/documents?

Thanks again
J


On Apr 3, 2005, at 6:46 PM, Jeremy Wadsack wrote:



James Coyle wrote:

I've been having a problem with Report Magic not being able to write it's report to a folder within my home documents folder: (This is with Analog 6.0)

Report Magic 2.21
Copyright (C) 1999-2003 Wadsack-Allen. All rights reserved.
rmagic: Beginning report creation (Sat Apr 2 23:39:21 2005).
rmagic: --> Settings file: ./rmagic.ini.
rmagic: --> Input data file: report.dat.
rmagic: --> Output report file: jamescoy/Documents/Reports/ .
rmagic: --> Output frameset file: jamescoy/Documents/Reports/index.html.
rmagic: ERROR: -- Can't write to the report file: jamescoy/Documents/Reports/ --
[James-Coyles-iBook:/sw/share/rmagic] jamescoy% ./rmagic.pl
Report Magic 2.21
Copyright (C) 1999-2003 Wadsack-Allen. All rights reserved.
rmagic: Beginning report creation (Sat Apr 2 23:40:44 2005).
rmagic: --> Settings file: ./rmagic.ini.
rmagic: --> Input data file: report.dat.
rmagic: --> Output report file: jamescoy/Documents/Reports/ .
rmagic: --> Output frameset file: jamescoy/Documents/Reports/index.html.
rmagic: ERROR: -- Can't write to the frameset file: jamescoy/Documents/Reports/index.html --



I've checked permissions and there doesn't seem to be any lack of permissions for Report Magic to write there. What am I doing wrong here? I'd like to have all graphics, etc. write to the above "Reports" folder.



It looks like you are running this from the folder /sw/share/rmagic, and trying to put the documents into the relative folder jamescoy/Documents/Reports. Do you really want these results to be in /sw/share/rmagic/jamescoy/Documents/Reports/?


If you are trying to put them into ~jamescoy, make sure you resolve that to a fully qualified pathname before adding it to your rmagic.ini file.

--
Jeremy Wadsack
Seven Simple Machines



_______________________________________________
This is the reportmagic-help mailing list
To change your subscription or other preferences use this URL:
  http://reportmagic.org/cgi-bin/mailman/listinfo/reportmagic-help

Reply via email to