Sponsored Content
Full Discussion: Multi User Multi Task
Top Forums UNIX for Dummies Questions & Answers Multi User Multi Task Post 302070511 by Reza Nazarian on Wednesday 5th of April 2006 11:23:57 AM
Old 04-05-2006
Multi User Multi Task

Dear Experts
Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task??
Thanks for your help in advances.
Cheers
Reza
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

multi-file multi-edit

Good day! I am trying to learn how to use the "sed" editor, to perform multiple edits on multiple files in multiple directories. I have one script that tries to call up each file and process it according to the edits listed in a second script. I am using a small input text to test these, at... (12 Replies)
Discussion started by: kielitaide
12 Replies

2. UNIX for Dummies Questions & Answers

Poor resourece allocation (multi-user system)

All, I am an intermediate user, and am running SAS on a nice Solaris machine. However, even when top says that no other programs are running, the machine will only give me 5-7% processor power. Is this a configuration problem with SAS or the way the server is configured? Is there any way I can... (3 Replies)
Discussion started by: dj_is
3 Replies

3. UNIX for Dummies Questions & Answers

A comparison of the multi-user facilities in Unix and Microsoft Windows.

hi guys just give me some information about multi user facilities that unix offer in cmparison to windows. Thanx (2 Replies)
Discussion started by: nadman123
2 Replies

4. Solaris

stay in multi user mode but stop logins to system?

I want to apply patches in multiuser mode but stop logins of other users while I do it? What is the best way to do this? I will be connected to the system via a putty session over a serial cable from another system (console is messed up)... Should I put in a dummy passwd and shadow file... (7 Replies)
Discussion started by: NewSolarisAdmin
7 Replies

5. Shell Programming and Scripting

Create a multi user input form

Hi All, Please ignore if terminology used is incorrect as I am new to Unix. I want to create a Multi user input form which looks something like this: ABCD TOOL Logged User: abcd12 ... (4 Replies)
Discussion started by: vidhu0007
4 Replies

6. Shell Programming and Scripting

Multi-line filtering based on multi-line pattern in a file

I have a file with data records separated by multiple equals signs, as below. ========== RECORD 1 ========== RECORD 2 DATA LINE ========== RECORD 3 ========== RECORD 4 DATA LINE ========== RECORD 5 DATA LINE ========== I need to filter out all data from this file where the... (2 Replies)
Discussion started by: Finja
2 Replies

7. Shell Programming and Scripting

How to substract selective values in multi row, multi column file (using awk or sed?)

Hi, I have a problem where I need to make this input: nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b look like this output: nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies

8. Programming

Multi head/multi window hello world

I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
Discussion started by: advorak
2 Replies

9. Shell Programming and Scripting

Help with reformat single-line multi-fasta into multi-line multi-fasta

Input File: >Seq1 ASDADAFASFASFADGSDGFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSD >Seq2 SDASDAQEQWEQeqAdfaasd >Seq3 ASDSALGHIUDFJANCAGPATHLACJHPAUTYNJKG ...... Desired Output File >Seq1 ASDADAFASF ASFADGSDGF SDFSDFSDFS DFSDFSDFSD FSDFSDFSDF SD >Seq2 (4 Replies)
Discussion started by: patrick87
4 Replies
CGI::FormBuilder::Multi(3pm)				User Contributed Perl Documentation			      CGI::FormBuilder::Multi(3pm)

NAME
CGI::FormBuilder::Multi - Create multi-page FormBuilder forms SYNOPSIS
use CGI::FormBuilder::Multi; use CGI::Session; # or something similar # Top-level "meta-form" my $multi = CGI::FormBuilder::Multi->new( # form 1 options { fields => [qw(name email daytime_phone evening_phone)], title => 'Basic Info', template => 'page1.tmpl', validate => { name => 'NAME', email => 'EMAIL' }, required => [qw(name email daytime_phone)], }, # form 2 options { fields => [qw(billing_name billing_card billing_exp billing_address billing_city billing_state billing_zip billing_phone)], title => 'Billing', template => 'page2.tmpl', required => 'ALL', }, # form 3 options { fields => [qw(same_as_billing shipping_address shipping_city shipping_state shipping_zip)], title => 'Shipping', template => 'page3.tmpl', required => 'ALL', }, # a couple options specific to this module navbar => 1, # remaining options (not in hashrefs) apply to all forms header => 1, method => 'POST', submit => 'Continue', values => $dbi_hashref_query, ); # Get current page's form my $form = $multi->form; if ($form->submitted && $form->validate) { # Retrieve session id my $sid = $form->sessionid; # Initialize session my $session = CGI::Session->new("driver:File", $sid, {Directory=>'/tmp'}); # Automatically store updated data in session $session->save_param($form); # last page? if ($multi->page == $multi->pages) { print $form->confirm; exit; } # Still here, goto next page $multi->page++; # And re-get form (no "my" on $form!) $form = $multi->form; # Make sure it has the right sessionid $form->sessionid($session->id); # on page 3 we have special field handling if ($multi->page == 3) { $form->field(name => 'same_as_billing', type => 'checkbox', options => 'Yes', jsclick => 'this.form.submit()'); } } # Fall through and print next page's form print $form->render; DESCRIPTION
This module works with "CGI::FormBuilder" to create multi-page forms. Each form is specified using the same options you would pass directly into FormBuilder. See CGI::FormBuilder for a list of these options. The multi-page "meta-form" is a composite of the individual forms you specify, tied together via the special "_page" CGI param. The current form is available via the "form()" method, and the current page is available via "page()". It's up to you to navigate appropriately: my $multi = CGI::FormBuilder::Multi->new(...); # current form my $form = $multi->form; $multi->page++; # page forward $multi->page--; # and back $multi->page = $multi->pages; # goto last page # current form $form = $multi->form; To make things are fluid as possible, you should title each of your forms, even if you're using a template. This will allow "::Multi" to create cross-links by-name instead of just "Page 2". METHODS
The following methods are provided: new(\%form1, \%form2, opt => val) This creates a new "CGI::FormBuilder::Multi" object. Forms are specified as hashrefs of options, in sequential order, similar to how fields are specified. The order the forms are in is the order that the pages will cycle through. In addition to a hashref, forms can be directly specified as a $form object that has already been created. For existing objects, the below does not apply. When the first non-ref argument is seen, then all remaining args are taken as common options that apply to all forms. In this way, you can specify global settings for things like "method" or "header" (which will likely be the same), and then override individual settings like "fields" and "validate" on a per-form basis. If you do not wish to specify any options for your forms, you can instead just specify the "pages" option, for example: my $multi = CGI::FormBuilder::Multi->new(pages => 3); With this approach, you will have to dynamically assemble each page as you come to them. The mailing list can help. The "SYNOPSIS" above is very representative of typical usage. form() This returns the current page's form, as an object created directly by "CGI::FormBuilder->new". All valid FormBuilder methods and options work on the form. To change which form is returned, us "page()". page($num) This sets and returns the current page. It can accept a page number either as an argument, or directly as an assignment: $multi->page(1); # page 1 $multi->page = 1; # same thing $multi->page++; # next page $multi->page--; # back one if ($multi->page == $multi->pages) { # last page } Hint: Usually, you should only change pages once you have validated the current page's form appropriately. pages() This returns the total number of pages. Actually, what it returns is an array of all forms (and hence it has the alias "forms()"), which just so happens to become the length in a scalar context, just like anywhere else in Perl. navbar($onoff) This returns a navigation bar that allows the user to jump between pages of the form. This is useful if you want to let a person fill out different pages out of order. In most cases, you do not want this, so it's off by default. To use it, the best way is setting "navbar => 1" in "new()". However, you can also get it yourself to render your own HTML: my $html = $multi->navbar; # scalar HTML my @link = $multi->navbar; # array of links This is useful in something like this: my $nav = $multi->navbar; $form = $multi->form; $form->tmpl_param(navbar => $navbar); The navbar will have two style classes: "fb_multi_page" for the current page's link, and "fb_multi_link" for the others. SEE ALSO
CGI::FormBuilder REVISION
$Id: Multi.pm 100 2007-03-02 18:13:13Z nwiger $ AUTHOR
Copyright (c) Nate Wiger <http://nateware.com>. All Rights Reserved. This module is free software; you may copy this under the terms of the GNU General Public License, or the Artistic License, copies of which should have accompanied your Perl kit. perl v5.14.2 2011-09-16 CGI::FormBuilder::Multi(3pm)
All times are GMT -4. The time now is 06:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy