<div dir="ltr"><div>It was called 'fpset' and likely was from John Esak's Guru .<br>I've been away from filePro for years now but I used to use the script constantly.<br><br></div><div><br></div><div>:<br># @(#) fpset.sh Set filepro data directory<br># Copied with some modification from the pages of the "GURU"<br># introductory issue published September 1990<br># Jan 1,1991 modified to set $gmmlogo to allow data set being used<br># to be displayed on Menu Maestro<br>#<br>#<br><br># Need this to avoid terminal scrambling on using "DEL" in filepro<br># for which the only cure is `stty sane`<br>#trap '' 2<br><br>#this from bob Stockler. Feb 17, 1997<br># don't let users break out of the menu (and it also<br># keeps the INTERRUPT signal being passed back from<br># its use within filepro from interrupting the script)<br><br>trap '' INT<br><br><br>MAINDIR=/appl<br><br>if [ $# = 0 ]<br>then<br>MSG="Which special `tput smso`filePro`tput rmso` directory? \c"<br>until [ -d ${FILE}/filepro ]<br>do<br>/bin/echo -e $MSG<br>read FILE<br>done<br>else<br>FILE=$1<br>fi<br><br><br>if [ -d ${FILE}/filepro ]<br>then<br>PFDIR=$FILE;export PFDIR<br>PS1="`/usr/bin/tput smso`${FILE}>`/usr/bin/tput rmso` "<br>#Note: $PS1 may be set in /etc/bash.bashrc<br># Modify that file to check for an existing value<br># ie) [ -z "$PS1" ] && PS1="${_t}${_u}:\w${_p} "<br># Also ... make sure sh links to bash ... Ubuntu it's dash (no good)<br><br># find out if we've got a Special Menu Directory at $PFDIR<br>if [ -d $PFDIR/fpmenu ]<br>then<br> PFMENU=${PFDIR}/fpmenu<br> export PFMENU<br> PS1="`/usr/bin/tput smso`${FILE} & menu> `/usr/bin/tput rmso` "<br> #see above note on PS1 and /etc/bash.bashrc<br>fi<br># Is there a customer Edit file.<br>if [ -f ${PFDIR}/edits ]<br>then<br>export PFGLOB=${PFDIR}/edits<br>fi<br>#--------The following are mostly for a major customer -----<br># Some custom settings here for customer<br>[ "${PFDATA}${PFDIR}" = "/opt/BigCustomer" ] && {<br>export PFSCRIPTS=${PFDATA}${PFDIR}/scripts<br>export PFARCHIVE=${PFDATA}${PFDIR}/var/archive/fax<br>}<br>[ "${PFDATA}${PFDIR}" = "/opt/FONTLIVE" ] && {<br>export PFSCRIPTS=${PFDATA}${PFDIR}/scripts<br>export PFARCHIVE=${PFDATA}${PFDIR}/var/archive/fax<br>export PFMENU=/opt/BigCustomer/fpmenu<br>}<br>#------------------------------------------------------------------<br><br>#PFPRINTER=file; export PFPRINTER #print-out test stuff/doc's here<br>unset FPTERM<br>export PS1<br>#/bin/sh #Any problems with $PS1 are due to /etc/bash.bashrc see note above<br>/bin/bash --rcfile <(echo "PS1=\"$1 >>: \"") -i<br>echo "\n"<br>else<br>/bin/echo -e "Sorry, no such special filePro directory \"$FILE\""<br>exit 1<br>fi</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>--</div><div>Bill McEachran</div><div><font size="1"><a href="mailto:bill.mceachran@gmail.com" target="_blank">bill.mceachran@gmail.com</a> 289-356-4406</font></div><div></div></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Apr 29, 2026 at 12:46 PM Mike Schwartz via Filepro-list <<a href="mailto:filepro-list@mailman.celestial.com">filepro-list@mailman.celestial.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> One of my customers asked me to setup a development copy of their filePro databases, including a development copy of their menus.<br>
<br>
Their Linux system is: 2.6.32-573.18.1.el6.x86_64 #1 SMP Wed Jan 6 11:20:49 EST 2016 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>
Their original filePro databases are in /u/appl/filepro, with /appl linked to /u/appl. This has worked just fine for years.<br>
<br>
So I created a /u/appl2/filepro subdir and copied their existing databases into /appl2<br>
<br>
[devgroup@filepro /]$ ls -l | more<br>
total 179<br>
lrwxrwxrwx. 1 root root 7 Nov 11 2016 appl -> /u/appl<br>
lrwxrwxrwx. 1 root root 8 Apr 27 19:20 appl2 -> /u/appl2<br>
<br>
Then I wrote a script that -should- allow a user named "devmaster" to select either the live filePro menus and databases -or- the development/testing menus and databases:<br>
<br>
[devgroup@filepro ~]$ more .bash_profile<br>
<br>
# .bash_profile<br>
<br>
# Get the aliases and functions<br>
if [ -f ~/.bashrc ]; then<br>
. ~/.bashrc<br>
fi<br>
<br>
# User specific environment and startup programs<br>
<br>
PATH=$PATH:$HOME/bin<br>
<br>
export PATH<br>
<br>
clear<br>
clear<br>
echo "Select Desired Profile."<br>
echo<br>
echo "1) filePro 2023 ."<br>
echo "2) filePro Apr 2026 ."<br>
echo "3) EXIT ."<br>
echo<br>
echo<br>
read answer<br>
case $answer in<br>
1)<br>
#mjs."<br>
PFPROG=/appl<br>
# PFDATA=/<br>
PFDIR=/appl<br>
TERM=scoansi<br>
# TERM=xterm<br>
PFMENU=/appl/fp/menus<br>
PFTMP=/appl/tmp; LOGFILE=/tmp/fm; PFLOGAPPEND=ON<br>
export PFPROG PFDATA PFDIR PFMENU PFTMP LOGFILE PFLOGAPPEND TERM<br>
p<br>
#mjs."<br>
###======================================<br>
;;<br>
2)<br>
#PPM"<br>
PFCHECKLOCKLOG=/u/tmp/pfchecklock2.log<br>
PFPROG=/appl<br>
# PFDATA=/<br>
PFDIR=/appl2<br>
TERM=scoansi<br>
PFMENU=/appl/fp/menus2<br>
PFTMP=/appl/tmp; LOGFILE=/tmp/fm; PFLOGAPPEND=ON<br>
export PFPROG PFDATA PFDIR PFMENU PFTMP LOGFILE PFLOGAPPEND TERM PFCHECKLOCKLOG<br>
#p MENU1<br>
p<br>
#PPM"<br>
###======================================<br>
;;<br>
3)<br>
#Logging out"<br>
EXIT<br>
##Logging Out."<br>
;;<br>
*)<br>
#Logging out"<br>
echo "Sorry, you must enter 1 2 or 3. Press ENTER to exit..."<br>
read akey<br>
EXIT<br>
##Logging Out."<br>
;;<br>
esac<br>
(Thanks to "Old Tony" for the sample script he provided to the filePro list a few years ago...)<br>
<br>
The problem is that whenever I select either option #1 or option #2, then try to go into "inquire, update, add" on one of the databases, like our "CustList" database, I get this error message:<br>
<br>
*** A filepro Error Has Occurred<br>
<br>
on File: /appl/filepro/ListCustomer/data<br>
File Also On /u Drive<br>
Duplicate files found while scanning drives.<br>
***<br>
Press H -Hardcopy Enter -Continue<br>
<br>
I presume this error has something to do with the linked /appl and /u/appl subdirs and/or with the linked /appl2 or /u/appl2 subdirectories, but I haven't been able to figure out what the problem is.<br>
<br>
Both instances of databases do share the same set of executables, which are in /appl/fp, except that there is a /appl/fp/menus 2 folder which holds the development/testing menus.<br>
<br>
Any ideas?<br>
<br>
Thanks!<br>
<br>
Mike Schwartz<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20260429/6d1212ee/attachment.html" rel="noreferrer" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20260429/6d1212ee/attachment.html</a>><br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@mailman.celestial.com" target="_blank">Filepro-list@mailman.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="https://mailman.celestial.com/mailman/listinfo/filepro-list" rel="noreferrer" target="_blank">https://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</blockquote></div>