Normal Topic Command Line Switches (Read 2617 times)
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Command Line Switches
Jan 4th, 2004 at 12:25am
Print Post Print Post  
Am I mistaken, or are there only 2 command line switches: Server and Client?

I did a search of all four of the PDF documentation and could only fine that one references to command line switches.  I was trying to find answers to the following:

How can I get Sesame to open up and start an application immediately? 

I understand that to run a macro, I will need to load a form that has a macro programmed into it, correct?

No more "-g" option to eliminate use of mouse?

No more "-sxx" options for video displays?

I seem to recall that in the beta tests, there were switches to eliminate/replace the Splash screen, eliminate the view of the tree on the left, etc.  Can you  please direct me to a master list of these command line options?
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Command Line Switches
Reply #1 - Jan 4th, 2004 at 2:05am
Print Post Print Post  
Quote:
How can I get Sesame to open up and start an application immediately?


sesame myapp.db

Quote:
I understand that to run a macro, I will need to load a form that has a macro programmed into it, correct?

You can:
1. Attach the macro to a command button on a form
2. Load and run the macro from the Macro menu.
3. Use the startup switch:  sesame -macro my_macro.mac
4. Use the SBasic @Macro command

Quote:
No more "-g" option to eliminate use of mouse?

Nope.

Quote:
No more "-sxx" options for video displays?

Nope.

Quote:
I seem to recall that in the beta tests, there were switches to eliminate/replace the Splash screen, eliminate the view of the tree on the left, etc.  Can you  please direct me to a master list of these command line options?

sesame -help
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Command Line Switches
Reply #2 - Jan 4th, 2004 at 2:39am
Print Post Print Post  
Quote:
sesame -help

Aaaargh, I knew it was there somewhere.  I tried -h and /h, what a dummy, Me!

Is there a reference to -help that I missed in the documentation?

Note that when you enter "sesame -help" that you do not just get the information on the command line switches, but Sesame Database Manager opens up also. 

And it is ironic that if you now click on Help on the open copy of Sesame, you get the message that "No help file are found".  You cannot get any more help until you close Sesame and reopen it!

Here is a listing to save a trip to DOS:
Quote:
  Syntax:
sesame [-macro <macro_file.mac>][-server <server_name[:port_no1][:port_no2]>]
[-client <server_name[:port_no1][:port_no2]>][-qa <qa_file.dtf>][-closed]
[-splash <image_file<.bmp|.jpg|.png>>]
[-scheme <scheme_name>][-blink][-help][sesame_database.db][sesame_design_file.dsr]

     *Items in "[ ... ]" are optional and may appear in any order. Items in "< ... >" are required arguments and must immediately follow their command.


Commands:
     -client server_name[:port_no1][:port_no2]
           This command starts a Sesame client on the local machine and connects it to the Sesame server already running on the remote machine using the ports specified. The port numbers must match those used when starting the Sesame server, and must be open ports not used by any other program on either machine.

     -closed
           The "-closed" command causes the command panel to be closed when the Sesame client starts.

     -help
           Causes this message to be shown.

     -macro macro_file.mac
           This command causes a macro file to be loaded and run during client startup.

     -server server_name[:port_no1][:port_no2]
           This command starts a Sesame server on the local machine using the ports specified. The same port numbers will be used when starting Sesame clients, and must be open ports not used by any other program.

     -splash image_file[.jpg|.bmp|.png]
           This command replaces the usual splash screen with the image supplied in the image file. The image file must be a jpeg, bmp, or png type image.

     -scheme scheme_name
           This command changes the look of sesame to the specified scheme.

     -blink
           This command turns on cursor blinking.

     -qa qa_database.dtf
           Translate a Q&A database and load the resulting Sesame database.

Examples:
     To simply open a database named "client_list.db":
           sesame client_list.db

     To open a database named "client_list.db" and run a macro file named "my_macro.mac" immediately:
           sesame client_list.db -macro my_macro.mac

     To start a sesame server on a machine named "Cruncher":
           sesame -server Cruncher:20000:20001

     To start a sesame client that connects to the server running on "Cruncher":
           sesame -client Cruncher:20000:20001


  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Command Line Switches
Reply #3 - Jan 4th, 2004 at 4:38pm
Print Post Print Post  
Quote:
And it is ironic that if you now click on Help on the open copy of Sesame, you get the message that "No help file are found".  You cannot get any more help until you close Sesame and reopen it!

I'm betting that you opened your command line to
c:\sesame\program>sesame -help

because that is where sesame.exe actually is. This would place your current working directory below the Help Files. If you use the same working directory as the shortcuts, this won't happen.
c:\sesame>Program\sesame -help


Mark wrote an article for this month's issue of Inside Sesame detailing how the current working directory is used by Sesame, and some of the things you can do with it.

You can also set an environment variable if you want the same help files to be available regardless of working directory. The section on environment variables begins on page 431 of the User Guide.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
TJCajun
Junior Member
**
Offline


"Laissez les bons temps
rouler"

Posts: 72
Location: Louisiana
Joined: Nov 25th, 2002
Re: Command Line Switches
Reply #4 - Jan 4th, 2004 at 6:00pm
Print Post Print Post  
Quote:
You can also set an environment variable if you want the same help files to be available regardless of working directory. The section on environment variables begins on page 431 of the User Guide.



Take note that if you set the Sesame environment variable, that it takes precedence over the use of the "Start In" location in any shortcuts that you might use. 

Mark's article in the Jan 2004 of Inside Sesame http://www.insidesesame.com was excellent, and gave some useful tips on setting up separate shortcuts (with separate icons on the Windows Desktop) for different applications.

BTW, all those switches that aren't in the manuals are given in this first issue of Inside Sesame, in Mark's article!
  
Back to top
IP Logged
 
bigbillh
Member
*
Offline


No personal text

Posts: 3
Location: Warwick, Rhode Island
Joined: Dec 2nd, 2002
Re: Command Line Switches
Reply #5 - Jan 4th, 2004 at 7:49pm
Print Post Print Post  
Item 5 of the X:\Sesame\README.txt has the startup switches also.
  
Back to top
 
IP Logged