Trying to setup a development copy of the filePro databases

William J. McEachran bill.mceachran at gmail.com
Wed Apr 29 19:37:31 UTC 2026


It was called 'fpset' and likely was from John Esak's Guru .
I've been away from filePro for years now but I used to use the script
constantly.


:
#     @(#) fpset.sh   Set filepro data directory
#     Copied with some modification from the pages of the "GURU"
#     introductory issue published September 1990
#     Jan 1,1991 modified to set $gmmlogo to allow data set being used
#     to be displayed on Menu Maestro
#
#

# Need this to avoid terminal scrambling on using "DEL" in filepro
# for which the only cure is `stty sane`
#trap '' 2

#this from bob Stockler. Feb 17, 1997
# don't let users break out of the menu (and it also
# keeps the INTERRUPT signal being passed back from
# its use within filepro from interrupting the script)

trap '' INT


MAINDIR=/appl

if [ $# = 0 ]
then
MSG="Which special `tput smso`filePro`tput rmso` directory?  \c"
until [ -d ${FILE}/filepro ]
do
/bin/echo -e $MSG
read FILE
done
else
FILE=$1
fi


if [ -d ${FILE}/filepro ]
then
PFDIR=$FILE;export PFDIR
PS1="`/usr/bin/tput smso`${FILE}>`/usr/bin/tput rmso` "
#Note: $PS1 may be set in /etc/bash.bashrc
#      Modify that file to check for an existing value
#      ie) [ -z "$PS1" ] && PS1="${_t}${_u}:\w${_p} "
#      Also ... make sure sh links to bash ... Ubuntu it's dash (no good)

# find out if we've got a Special Menu Directory at $PFDIR
if [ -d $PFDIR/fpmenu ]
then
  PFMENU=${PFDIR}/fpmenu
  export PFMENU
  PS1="`/usr/bin/tput smso`${FILE} & menu> `/usr/bin/tput rmso` "
  #see above note on PS1 and /etc/bash.bashrc
fi
# Is there a customer Edit file.
if [ -f ${PFDIR}/edits ]
then
export PFGLOB=${PFDIR}/edits
fi
#--------The following are mostly for a major customer -----
# Some custom settings here for customer
[ "${PFDATA}${PFDIR}" = "/opt/BigCustomer" ] && {
export PFSCRIPTS=${PFDATA}${PFDIR}/scripts
export PFARCHIVE=${PFDATA}${PFDIR}/var/archive/fax
}
[ "${PFDATA}${PFDIR}" = "/opt/FONTLIVE" ] && {
export PFSCRIPTS=${PFDATA}${PFDIR}/scripts
export PFARCHIVE=${PFDATA}${PFDIR}/var/archive/fax
export PFMENU=/opt/BigCustomer/fpmenu
}
#------------------------------------------------------------------

#PFPRINTER=file; export PFPRINTER   #print-out test stuff/doc's here
unset FPTERM
export PS1
#/bin/sh   #Any problems with $PS1 are due to /etc/bash.bashrc see note
above
/bin/bash --rcfile <(echo "PS1=\"$1 >>: \"") -i
echo "\n"
else
/bin/echo -e "Sorry, no such special filePro directory \"$FILE\""
exit 1
fi
--
Bill McEachran
bill.mceachran at gmail.com     289-356-4406




On Wed, Apr 29, 2026 at 12:46 PM Mike Schwartz via Filepro-list <
filepro-list at mailman.celestial.com> wrote:

>      One of my customers asked me to setup a development copy of their
> filePro databases, including a development copy of their menus.
>
>       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
>
>      Their original filePro databases are in /u/appl/filepro, with /appl
> linked to /u/appl.  This has worked just fine for years.
>
>      So I created a /u/appl2/filepro subdir and copied their existing
> databases into /appl2
>
> [devgroup at filepro /]$ ls -l | more
> total 179
> lrwxrwxrwx.   1 root root     7 Nov 11  2016 appl -> /u/appl
> lrwxrwxrwx.   1 root root     8 Apr 27 19:20 appl2 -> /u/appl2
>
>      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:
>
> [devgroup at filepro ~]$ more .bash_profile
>
> # .bash_profile
>
> # Get the aliases and functions
> if [ -f ~/.bashrc ]; then
>         . ~/.bashrc
> fi
>
> # User specific environment and startup programs
>
> PATH=$PATH:$HOME/bin
>
> export PATH
>
> clear
> clear
> echo "Select Desired Profile."
> echo
> echo "1) filePro 2023 ."
> echo "2) filePro Apr 2026 ."
> echo "3) EXIT ."
> echo
> echo
> read answer
> case $answer in
>       1)
>          #mjs."
>          PFPROG=/appl
>          #  PFDATA=/
>          PFDIR=/appl
>          TERM=scoansi
>          #  TERM=xterm
>          PFMENU=/appl/fp/menus
>          PFTMP=/appl/tmp; LOGFILE=/tmp/fm; PFLOGAPPEND=ON
>          export PFPROG PFDATA PFDIR PFMENU PFTMP LOGFILE PFLOGAPPEND TERM
>          p
>          #mjs."
>          ###======================================
>          ;;
>       2)
>          #PPM"
>          PFCHECKLOCKLOG=/u/tmp/pfchecklock2.log
>          PFPROG=/appl
>          #  PFDATA=/
>          PFDIR=/appl2
>          TERM=scoansi
>          PFMENU=/appl/fp/menus2
>          PFTMP=/appl/tmp; LOGFILE=/tmp/fm; PFLOGAPPEND=ON
>          export PFPROG PFDATA PFDIR PFMENU PFTMP LOGFILE PFLOGAPPEND TERM
> PFCHECKLOCKLOG
>          #p MENU1
>          p
>          #PPM"
>          ###======================================
>          ;;
>       3)
>          #Logging out"
>          EXIT
>          ##Logging Out."
>          ;;
>       *)
>          #Logging out"
>          echo "Sorry, you must enter 1 2 or 3.  Press ENTER to exit..."
>          read akey
>          EXIT
>          ##Logging Out."
>          ;;
> esac
>       (Thanks to "Old Tony" for the sample script he provided to the
> filePro list a few years ago...)
>
>       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:
>
> *** A filepro Error Has Occurred
>
> on File: /appl/filepro/ListCustomer/data
> File Also On /u Drive
> Duplicate files found while scanning drives.
> ***
> Press    H -Hardcopy    Enter -Continue
>
>      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.
>
>      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.
>
>      Any ideas?
>
> Thanks!
>
> Mike Schwartz
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.celestial.com/pipermail/filepro-list/attachments/20260429/6d1212ee/attachment.html
> >
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at mailman.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> https://mailman.celestial.com/mailman/listinfo/filepro-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20260429/0a8d2eb1/attachment.html>


More information about the Filepro-list mailing list