Sponsored Content
Operating Systems Solaris PsotLogin and PostSession scripts for Solaris Post 302550622 by jimx on Friday 26th of August 2011 11:04:57 AM
Old 08-26-2011
Thanks for the help guys.

To achenle, in short, the accounting is a small part of this project. Also, the Solaris built in accounting system does not fit our needs.

To psshah,
1) The instrument controller computers do not shut down. Users only need to login to use the instrument and then logoff when they are done. Sometimes we have to shut down the computers but that is rare.

2) GUI

3) There are over 20 instruments in our facility. There is a program (written in vb.net) running on a windows computer in our main office which is monitoring the login/off activities of all the instruments (basically monitoring the log.txt made by the login/off script of that instrument). Whenever the program detects a user finishes the experiment and logoff the instrument, a few things will be done instantly. Two examples, 1) the usage information will be collected instantly. By adding other information (user name, research group, account #, time, cost, etc), a new entry will be added to a billing database which will be processed monthly. 2) The user's newly save data will be located and uploaded to a cloud storage (for data backup, or user can process data in his/her lab).

In fact this system has been running for a while, except the two Solaris instruments which I still don't know how to get login/off information instantly from our main office.

Thanks again for any advice.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

kill scripts under Solaris

I should know this, but do K scripts in the /etc/rc?.d directories get run in numerically ascending or descending order? By default there are none in rc3.d. Is it OK to put 2 in there, and will they be run first (which is my goal). Thanks, Chuck (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. UNIX for Advanced & Expert Users

scripts no longer running (solaris 8)

hello: I am a somewhat experienced unix user, but brand new to this forum. I am encountering a strange new problem. I have a shell script called foo.ksh it has been running for years (literally) on my Sun (Solaris 8) machine. Recently we put a version of samba on this machine to... (3 Replies)
Discussion started by: smcadoo
3 Replies

3. Solaris

Solaris login scripts

I've got Solaris 9. I've read that I can do a login script for each individual user with the .postlogin file, but is there not a way to set up something like that from a group-membership level? If there is, how can one trace down what group membership login scripts are being run? (0 Replies)
Discussion started by: citrowske
0 Replies

4. Shell Programming and Scripting

2 shell scripts in Sun Solaris

Hi, Can somebody pls help me? I need to write 2 shell scripts in Sun Solaris operating system which would do this: 1. go to the specified directory - I am using alias for it at the moment 2. start the particular sql script with the output log as same as the script but with timestamp e. g.... (4 Replies)
Discussion started by: balco
4 Replies

5. Solaris

Scripts in solaris server

hi, i want to know whether we can use both perl and unix shell in a single script in Solaris server (4 Replies)
Discussion started by: chn10db001
4 Replies

6. Solaris

Solaris 10 startup scripts

Hi all, I have a server in maintenance mode and need to boot it up. Its due to a broken service "RepX". I need to stop the service from trying to start at boot up but i can't find where it is booting up from... it is not in any of the rcX.d directories and the two locations i have found it... (6 Replies)
Discussion started by: Tommyk
6 Replies

7. Solaris

Moving directory structure and scripts from HP to Solaris

Hi, I am presently working in a migration project from HP Unix to Sun Solaris. I need to place all the directory structures, shell scripts and users into Sun Solaris. By doing this task manually there is a possibility for discrepencies. So any tools are there to do these kind of... (4 Replies)
Discussion started by: nag_sathi
4 Replies

8. Solaris

When were all scripts on the Solaris server last executed?

Hi All, I am new to this forum and I am hoping someone will be able to help me:) I have inherited a very old Solaris server that has a number of scripts around 500 in total. I need to migrate the scripts to Linux but I would like to know which ones are currently being executed rather... (10 Replies)
Discussion started by: josamy
10 Replies
instruments(1)						    BSD General Commands Manual 					    instruments(1)

NAME
instruments, version 1.0 USAGE
instruments [-t template] [-d document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [-a application [-e variable value] [-g argument]]] DESCRIPTION
Runs an Instruments template from the command line. Options are : -t template The path to the template to run -s Show list of known templates and exit -d document The path to save the trace document data to (This may already exist, in which case a new Run will be added) -l # The limit of milliseconds to record until termination ( infinite is default ) -i # The index of the instrument to apply the following target data to ( default if missing ) -p pid The ID of the process to attach to -a application The path to the application or command to launch -w hardware device The identifier of the hardware to target -e variable value An environment variable setting (You may specify more than one) -g argument Command line argument to be sent to the launched process (You may specify more than one) -v Turn on verbose logging FILES
/usr/bin/instruments Executable SEE ALSO
/Developer/Applications/Instruments.app may be used to perform trace executions in a graphical environment and may also be used to open trace documents created in either instruments or Instruments.app. EXAMPLES
instruments -t mytemplate -a myapp.app Mac OS June 2, 2019 Mac OS
All times are GMT -4. The time now is 10:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy