Help in the creation of a "Mac kiosk" using a Shell Script

Hello

I have a MacBook in my school running OS X Snow Leopard, and I would like to set up so that when the computer reboots, the record of the student user gets deleted and copied from a protected configuration at startup. Can someone show me how to do this through the use of launchd, LoginHook or chron? Basically, I am trying to reach a similar State to which would provide Faronics Deep Freeze, but my school is not enough in the budget for 40 other Macs that they license owners.

I tried to do it than this recommended page (http://www.gcsdstaff.org/roodhouse/?p=3164) that uses a LoginHook, but it doesn't seem to work. The script executed perfectly in the Terminal, but not at the start. When I tried launchd, I didn't either. After the use of OS X for awhile, I really didn't need to use scripts so far, so consider me a noob.

All answers are appreciated,

LittlePLanet

We will need to see your script.

You may not assume any customization in your bash profile.

Tags: Mac OS & System Software

Similar Questions

  • Need help in the creation of triggers

    Hi friends

    I need to set a trigger of DB, I have not used concept of triggers previously this is the 1st time that I will use the concept of trigger please advise me

    the requirement is

    I need to set a trigger of DB for a 'xxx' table if all orders is deleted from the table 'xxx' means the triggers must fire and fill the data offline at the other "yyy" custom table... I created the custum "yyy" with a few 6-column table (eg: del_by, ord_no, created_date etc.) Please suggest me how I can get my task your help he's be highly appreciable

    Thanks in advance
    AT

    Sorry, I meant actually after HAVING DELETE (and I forgot FOR EACH ROW) - I edited the post above.

    : Old MAN's recording of your xxx table is deleted.
    : NEW is the registration of your table xxx which is inserted if it was an INSERT trigger.
    If you create a trigger for UPDATE, you will have both a: OLD and one: NEW record.

    The optional clause of SEO simply allows you to rename the OLD and NEW to some other names if you wish.

  • Need help with the creation of SQL table

    Hi all

    I created a table, a month back. Now, I need to create another table in the same structure.
    Is there a way for dat I can get the script from the table I created earlier and use the same to create another.
    Or y at - it another way, so that we can create a table with the same structure of the existing table.

    Help, please.

    Kind regards
    Mohan

    Discover the function [DBMS_METADATA. GET_DDL | http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_metada.htm#i1019414].

    Example:

    SQL> SET LONG 5000
    SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT') FROM DUAL;
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    

    Published by: Centinul on January 11, 2010 08:01

  • New user needs help with the creation of an animation :)

    Hello

    IM fairly new to all Adobe Premiere Pro Im using CS6 and need help with it.

    I want to make a video and add a scene that looks like the beginning of this video Sarah the movie - YouTube , to be exact - the animation at the location where you type your user name and password, I can do that in Adobe Premiere Pro? I want to do exactly the same animation and no idea of how do

    Would appreciate any help!

    There are several ways to do so.

    One way would be to create a title with the name and title with the password.  Add the crop effect to each and the keyframe as necessary. Adjust the size and position as desired.

  • Help with the creation of responsive navigation in 2015 DW (was: Newbie Question 2015)

    OK, I was on it for about 3 days and at my wits end... I am creating a website using DW 2015 I'm new to bootstrap3 I need to create a sensitive nav, exactly like this one http://mediatemple.net also note how she acts when you shrink the browser instead of pushing down from the site it opens on it... I am an expert in maybe a 3d and graphics, we can help or even if you can direct me in the right direction.

    Continuing from there where we left in your other thread:

    Change your container of nav to as below:

  • Help with the creation of color sets in the Illustrator file

    I'm repeating a specific background image on every page of a calendar and want to change its colors on each page. There are 2 shades in the image using a total of four different colors. I am not at all skilled in the theory of color and I was wondering if someone can please tell me if there is an easy way to come with harmonious color combinations that I can apply to the original Illustrator file? My solution shortcut would be to convert color to grayscale and apply a color overlay, but the image will seem just flat when I do this. I prefer to set the gradients individually but do not know how to find the compatible colours.

    Here's a preview of the image, followed by a DropBox link to the Illustrator file.

    background.jpg

    https://DL.dropboxusercontent.com/u/52882455/background1.AI

    Thank you!

    Couple for you ideas:

    First of all, try to use the color wheel on color.adobe.com.  Select the middle color and add your hex code of the color.  The app will automatically show you similar colors.  See an example of here. You can also experiment with other rules of color in the color rule menu (just click on one of them).

    Second, take a look at themes created by others.  If you are generally looking for colors that work well with the yellow, you can browse the most popular themes and identify some that use yellow.

    I hope this helps.

  • Help in the creation of the schema Script in order to short-circuit

    Dear Sir
    As I have two similar patterns (with the same objects) and I need to create scripts for the two schemas for objects like (procedures, packages, functions, views, triggers) of these two diagrams (what I'm doing with the help of Toad (DBA > > generate the schema Script), now my problem is that the sequence of object in the scripts are different in the two scripts) , so is there a way I can get fixed a short sequence (probably in alphabetical order) .then my complementary process can be simplified



    Thanks and greetings
    Ashish Mishra

    If you don't want a specific product solutions, do not post in a specific forum of the product.

    I suggest that ask you in the forum SQL and PL/SQL.

  • Dreamweaver can help in the creation of a referral of human age verification Page?

    My client, a Destributer of beer and all other Web sites that sell alcohol, even the little guys, have seen an increase in audits by the Federal Trade Commission (FTC) and need a gateway for users to put their age, if more than 18, to view the site. Visit the Sam Adams for example: http://www.samueladams.com.

    It seems that people choose one of the two methoods for this. Just a yes / no question about a referral page or a page where they actually put in their age. Whatever it is, it is created so that you can not access the site without verifying your age.

    Is there something in Dreamweaver that can help me meet these technical requirements?

    This is the site to date: http://www.atomic.cyndeeadkins.com/

    It's still a work in progress of course...

    As we are all aware, two methods are not completely foolproof.

    If you want to just Yes / No, you can simply make a landing page with 2 buttons - Yes and no. The Yes button linking to the main site and no button for Google.com or some other page custom indicating their access is not that they are minors.

    If you want a DOB field to validate the age, here's the script:

    MM010203040506070809101112 DD01020304050607080910111213141516171819202122232425262728293031 YYYY20122011201020092008200720062005200420032002200120001999199819971996199519941993199219911990198919881987198619851984198319821981198019791978197719761975197419731972197119701969196819671966196519641963196219611960195919581957195619551954195319521951195019491948194719461945194419431942194119401939193819371936193519341933193219311930192919281927192619251924192319221921192019191918191719161915191419131912191119101909190819071906190519041903190219011900
  • Need help with the creation of a brush

    Hi guys,.

    I wanted to ask for help in creating a brush (even a link to a tutorial will be goon enough ).

    I got this example:

    Sample.png

    I've created a brush him, and I'm trying to get this kind of result:

    Result.png

    but it is only done to duplicate it and gives me this result:

    Test.png

    Can someone help me please understand what I need to set so that the brush behaves like a continuous brush rather than reproduce them?

    Thank you very much

    Shlomit

    what you need to do, is make a brush that resembles the tip of a brush. Photoshop already has several, but you can make your own that is going to be the best.

    get a brush and a place a bit like what made you, but do not paint a paint stroke. make it kindof grungy look. make your brush, making sure to desaturate and all.

    EDIT:

    Oh, and if you make the filling similar to 10-20% of your race will be better

  • Need help in the creation of procedure

    Hi all

    Some body can you please help me in creating a procedure.
    I have a 'NAME' table and column LNAME, FNAME, EMPID
    now I have an EMPID_SEQ sequence.
    I have data like
    LNAME      FNAME      EMPID
    JOHN        SMITH
    JOHN        SMITH
    PETER      PARKER
    MIKE        JONES
    MIKE        JONES
    MIKE        JONES
    Now, I want to write a procedure in order to give a number (EMPID_SEQ. NEXTVAL) for the same name and surname as

    LNAME      FNAME      EMPID
    JOHN        SMITH       1
    JOHN        SMITH       1
    PETER      PARKER       2
    MIKE        JONES        3
    MIKE        JONES        3
    MIKE        JONES        3
    can someone help me please by writing this procedure.
    Thanks in advance.

    Hello:

    DECLARE
       CURSOR c
       IS
          SELECT DISTINCT lname,
                          fname
                     FROM names;
    BEGIN
       FOR i IN c
       LOOP
          UPDATE names
             SET empid = empid_seq.NEXTVAL
           WHERE lname = i.lname AND fname = i.fname;
       END LOOP;
    END;
    

    Saad,
    http://saadnayef.blogspot.com

  • Need help with the creation of a research or time slider bar

    Hello!

    I have three scenes in my fla and I want to create a time slider that shows the current framework of playing time and the total time of the image. Can someone help me on this.

    Thank you

    I made a few changes...

    Creates:
    txtFrameStatus
    TextField: html and multiline.

    mcBar
    A mc with a horizontal bar.

    VARs
    var movieFPS:Number = 12; Here set the FPS
    var porcent:Number;
    var currentFrame:Number;
    var totalFrames:Number;
    var totalSeconds:Number;
    var currentSeconds:Number;
    var textTime:String;

    function that presents information
    this.onEnterFrame = function (): Void {}
    currentFrame = _currentframe;
    totalFrames = _totalframes;
    us = Math.floor ((currentFrame / totalFrames) * 100);
    totalSeconds = Math.floor(totalFrames / 12);
    currentSeconds = Math.floor(currentFrame / 12);

    var cSeconds:Number = currentSeconds % 60; cSeconds = (cSeconds< 10)="">
    '0' + cSeconds: cSeconds;
    var cMinutes:Number = Math.floor(currentSeconds / 60); cMinutes =
    (cMinutes< 10)="" "0"="" +="" cminutes="" :="">

    var tSeconds:Number = totalSeconds % 60; (tSeconds = tSeconds< 10)="">
    '0' + tSeconds: tSeconds;
    var tMinutes:Number = Math.floor(totalSeconds / 60); tMinutes =
    (tMinutes< 10)="" "0"="" +="" tminutes="" :="">

    textTime = "Total images:" + totalFrames + "."
    ";
    textTime += "current Frame:" + currentFrame + "."
    ";
    textTime += "us:" + us + '%' + "."
    ";
    textTime += ' time Total: "+ tMinutes +": "+ tSeconds +". "
    ";
    textTime += ' current time: "+ cMinutes +": "+ cSeconds;"

    txtFrameStatus.htmlText = textTime;

    mcBar._xscale = us;

    if(porcent == 100) delete this.onEnterFrame;
    };

    --
    Kind regards
    Erick Souza
    www.ericksouza.com

  • I need help for the creation of rules - the very high values!

    Hello

    I have some troubleshooting by creating rules to HFM 11.1.1.3. I declarate a table where an account data are stored. There should be a stored digital data in another account of HFM (e.g. "EB_MITTEL"). The stored data are much higher than the value in the logfile ('write2File") showed. If I divide this value by 100000000000000 so good value.

    Example: The value in the log file: 16492,8691588785 (',' = the decimal delimiter)
    Value in the data grid: 164.928.691.588.785 ("'. ' separator = of thousands")

    Part of the rule file:

    Void

    Dim lMittelWert, lMaxWert, lMinWert

    lMittelWert = 0
    lMaxWert = 0
    lMinWert = 0
    a = 0
    For x = 1 to 13

    If arListe (x) <>0 then
    lMittelWert = lMittelWert + arListe (x)
    a = a + 1
    End if

    If lMaxWert < arListe (x) then
    lMaxWert = arListe (x)
    End If

    If x = 1 then
    lMinWert = arListe (x)
    End if

    Next

    lMinWert = lMaxWert

    For x = 1 to 13

    If lMinWert > arListe (x) and arListe (x) <>0 then
    lMinWert = arListe (x)
    End If
    write2file arListe (x)
    Next
    If <>0 then
    lMittelWert = lMittelWert / a
    End if
    KSM Exp ' a #EB_MITTEL.» ' C1 # "& C1Item &"="& lMittelWert
    KSM Exp ' a #EB_MIN. C1 # "& C1Item &"="& lMinWert
    KSM Exp ' a #EB_MAX. C1 # "& C1Item &"="& lMaxWert
    End Sub



    I hope someone can help me, thanks in advance. (and I'm so sorry for my bad English)

    Jürgen

    VB script using string to convert numbers in some languages require special attention during the handling of numbers. (French, German and other who use commas as the decimal separator).

    Internally, HFM VB Scripts use periods (.) as the decimal separator. One solution is to force the use of decimals and force the script engine to use decimal numbers by declaring the local to be English in the United States with:

    b = setLocale("en-us")

  • help in the creation of function.

    Hi guys I am a newbie in pl/sql...
    I want to create a function that bed alll the lines of a table containing hundreds of lines...
    Break all the lines separated by space in several blocks or columns and check certain conditions on each block/columns...
    For example:
    I have a table that is to have a GBA and hundreds these lines...

    12345 1234 12345 12345 12345 12345 12345 12345
    .
    .
    .
    .
    Now, I want to create a function or a procedure that reads all the lines and check certain conditions on every word of each line...

    for example: 1st condition:
    1st, 2nd, 3rd, 4th and 5th Word is 12345 or not...
    2nd, 3rd, 4th, 5th, 6th Word is 1234 or not
    3rd word has a length = 5 or not, and various other conditions... but one thing is sure, I must check all the words in the line with respect to each condition...


    thnx in advance...

    Or...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with testdata as (select '12345 12345 12345 12345 12345 12346 12347 12348' as txt from dual union all
      2                    select '54321 1234 1234 1234 1234 1234 32785' from dual union all
      3                    select '10101 10101 10101 10101 10101 10101 10101' from dual union all
      4                    select '123 123 123 123 123 123 123' from dual)
      5  --
      6  -- end of test data, use query below
      7  --
      8  select txt
      9        ,case when wrd1 = '12345' and wrd2 = '12345' and wrd3 = '12345' and wrd4 = '12345' and wrd5 = '12345' then
     10                'True'
     11         else 'False' end as cond1
     12        ,case when wrd2 = '1234' and wrd3 = '1234' and wrd4 = '1234' and wrd5 = '1234' and wrd6 = '1234' then
     13                'True'
     14         else 'False' end as cond2
     15        ,case when length(wrd3) = 5 then
     16                'True'
     17         else 'False' end as cond3
     18  from (
     19        select txt
     20              ,regexp_substr(txt,'[^ ]+',1,1) as wrd1
     21              ,regexp_substr(txt,'[^ ]+',1,2) as wrd2
     22              ,regexp_substr(txt,'[^ ]+',1,3) as wrd3
     23              ,regexp_substr(txt,'[^ ]+',1,4) as wrd4
     24              ,regexp_substr(txt,'[^ ]+',1,5) as wrd5
     25              ,regexp_substr(txt,'[^ ]+',1,6) as wrd6
     26        from testdata
     27*      )
    SQL> /
    
    TXT                                             COND1 COND2 COND3
    ----------------------------------------------- ----- ----- -----
    12345 12345 12345 12345 12345 12346 12347 12348 True  False True
    54321 1234 1234 1234 1234 1234 32785            False True  False
    10101 10101 10101 10101 10101 10101 10101       False False True
    123 123 123 123 123 123 123                     False False False
    
  • Need help with the creation of meeting of the calendar in the hive using SOAP

    Hi all

    Here is the SOAP envelope, I am sending you in the CalendarService on the hive:
    <? XML version = "1.0" encoding = "utf-8"? >
    < xmlns:S s: Envelope = 'http://schemas.xmlsoap.org/soap/envelope/' >
    < Body >
    < ns3:createMeeting xmlns:ns3 = "http://www.oracle.com/beehive/2010/01/ws".
    xmlns:ns2 = "http://www.oracle.com/beehive" >
    < creator >
    423d:1645:clnd:A0438CC3371B5F60E040010A1E1E064E000000002F34 < id > < /ID >
    < / creator >
    < meetingUpdater >
    < end > 2011 - 07 - 07T 17: 00:00.000 - 04:00 < / end >
    < includeOnlineConference > false < / includeOnlineConference >
    < inviteeParticipantStatus > ACCEPTED < / inviteeParticipantStatus >
    < inviteePrimaryClientReminderTrigger >
    < offset > - P0Y0M0DT0H10M < / offset >
    < relativeTo > START < / relativeTo >
    < / inviteePrimaryClientReminderTrigger >
    < inviteePriority > NONE < / inviteePriority >
    < inviteePropertiesUpdater >
    < propMods >
    < collabProperty > < / collabProperty >
    operation of <>< / operation >
    < propertyName > < / propertyName >
    < / propMods >
    < / inviteePropertiesUpdater >
    < inviteeTransparency > DEFAULT_TRANSPARENCY < / inviteeTransparency >
    < locationName > PTO < / locationName >
    < participantUpdaters >
    [email protected] < address > < / address >
    < name > [email protected] < / name >
    < operation > ADD < / operation >
    423d:1645: user: 051C9D4373144A67B8069F4C0B5C5A460000000000F3 < member > < / participant >
    < / participantUpdaters >
    < start > 2011 - 07 - 07T 08: 00:00.000 - 04:00 < / start >
    < status > CONFIRMED < / status >
    < textDescription > Maynard PTO < / textDescription >
    < xhtmlFragmentDescription > < / xhtmlFragmentDescription >
    < / meetingUpdater >
    < type > MEETING < / type >
    < / ns3:createMeeting >
    < / Body >
    < / s: Envelope >

    I return the following result:
    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    < ns4:Envelope xmlns:ns4 = "http://schemas.xmlsoap.org/soap/envelope/".
    xmlns:NS3 = "http://www.oracle.com/beehive/2010/01/ws".
    xmlns:ns2 = "http://www.oracle.com/beehive" >
    < ns4:Body >
    < ns4:Fault >
    NS4:Server < faultcode > < / faultcode >
    < faultstring > TM_INTERNAL_ERROR < / faultstring >
    < detail >
    < actionString > please notify your system administrator. < / actionString >
    < actionToken > TM_INTERNAL_ERROR_ACTION < / actionToken >
    < causeString > an unexpected internal error has occurred. < / causeString >
    < causeToken > TM_INTERNAL_ERROR_CAUSE < / causeToken >
    < effectString > the requested operation cannot be performed. < / effectString >
    < effectToken > TM_INTERNAL_ERROR_EFFECT < / effectToken >
    oracle.csi.CsiException < exceptionType > < / exceptionType >
    < / details >
    < / ns4:Fault >
    < / ns4:Body >
    < / ns4:Envelope >


    I'm passing in the wrong settings or something wrong with my server of hive?

    Hi Maynard,

    Your soap request is not formatted correctly. Here's a quick example I did.

          MeServiceSoap meServiceSoap = getMeServiceSoap(host, user, password);
          CalendarServiceSoap calendarServiceSoap = getCalendarServiceSoap(host, user, password);
    
          com.oracle.beehive.ObjectFactory objFactory = new com.oracle.beehive.ObjectFactory();
          Projection projFull = objFactory.createProjection();
          projFull.setValue("FULL");  
    
          Calendar defCalendar = meServiceSoap.readMyPersonalWorkspace(projFull).getDefaultCalendar();
    
          MeetingCreator meetingCreator = new MeetingCreator();
          meetingCreator.setCalendar(defCalendar.getCollabId());
          meetingCreator.setType(OccurrenceType.MEETING);
    
          MeetingUpdater meetingUpdater = new MeetingUpdater();
          meetingUpdater.setName("MyMeeting" + System.currentTimeMillis());
    
          DatatypeFactory datatypeFactory = DatatypeFactory.newInstance();
          XMLGregorianCalendar start = datatypeFactory.newXMLGregorianCalendar(2011, 7, 15, 11, 0, 0, 0, 0);
          meetingUpdater.setStart(start);
    
          meetingCreator.setMeetingUpdater(meetingUpdater);
    
          Meeting meeting = calendarServiceSoap.createMeeting(meetingCreator, projFull);
          System.out.println(meeting.getCollabId().getId());
    

    and here is the exchange of soap request

    
    
      
        
          
            ward1
            
            dummypwd1
          
        
      
      
        
          
            
              
              04A7:0227:clnd:A7683FCC881DEABEE040548C87827FA60000000186A8
              clnd
            
            
              MyMeeting1310071418478
              2011-07-15T11:00:00.000Z
            
            MEETING
          
          
        
      
    
    
    
    
      
        
          
            
              
              04A7:0227:invt:55F868509FE5459A825EB6E802D91B89000000000000
              invt
            
            ...
          
        
      
    
    

    It will be useful.
    Ward

  • Help with the creation of the Datagrid column

    I am trying to get a better understanding of the way the Spark DataGrid works so that I can create and version extended for one of my projects. One of the things that really left me speechless is how the datagrid sets up the columns based on the dataprovider when no explicit column is defined. I was able to debug through the initialization of the datagrid to the point where the setter for dataprovider is called. At this point, my debug trace goes "down the rabbit hole" so to speak and when she returns, the columns are initialized but I can't figure out how. Could someone tell me please to the class or function that is actually responsible for creating the columns of the dataprovider if they are not defined explicitly?

    So, as you have discovered, the Grid method / generateColumns (private) is called if the list of columns is always set to null when the commitPropertes().   Subsequently becomes the columns property, as a consequence of the liaison, should update the list of columns as expected.

    Could create an example that illustrates the problem you meet?   I'd be happy to look at it.

    -Hans

Maybe you are looking for

  • I had to remove my dead time capsule disk

    My system was struck by lightning and power surge battery back up to breath too. I lost my iMac, I could get all the hard drives from the inside, I'm working on an old iMac long story short, back to Time capsule, he also failed.  It was absolutely no

  • Application of Safari broke down

    I am a mac user. And I have a Macbook pro which is late 2011 version. I have been using for a while now and for a few months, there was an error in Safari approx. 1 I thought that there is a problem with the Internet. But then I found that internet w

  • Consistency of the NI USB-6008 device multiple numbering on several computers

    I have some equipment that we built that contains 2 units of acquisition of data NI USB-6008 to test the product. The test software is written in C++ with NI DAQmx. Everything works fine, except that when plug us the test on another PC, the two units

  • Impossible to update of Windows and other software (stuck at 'Check updates')

    My laptop cannot update windows, it get stuck at "Checking updates...". The same thing happens if I try to update other software, including antivirus software. That they be stuck all trying to update or to tell me that they cannot connect to the serv

  • Tweak UI 2.1 changed the XP admin password

    Me I ran Tweak UI 2.1 and somehow an admin password and now I'm completely locked down with no other user profiles to get even on the menu 'start '. Any ideas?