Sponsored Content
Full Discussion: change
Homework and Emergencies Homework & Coursework Questions change Post 302357314 by frankycool on Tuesday 29th of September 2009 10:32:59 AM
Old 09-29-2009
Java Hi guys this is what i have done so far

Code:
#!/bin/bash

  read -t 10 -p "Code : " code
  if [ "$code" == "boom" ]; 
  then
       echo "Bomb Disactivated"
  else
       echo "Booom!!"
  fi


(Now what i cant do is the 3 tries validation entry of the secret code)

Last edited by Franklin52; 10-02-2009 at 04:43 AM.. Reason: Please use code tags!
 

8 More Discussions You Might Find Interesting

1. Cybersecurity

How to change ip ?

hi , Is there anyway to change ip on sco5.04 i tried using netconfig on the prompt but gives me error . how do u manually change ip cant use acoadmin and netconfig .... thx art (2 Replies)
Discussion started by: art_malabanan
2 Replies

2. Post Here to Contact Site Administrators and Moderators

Want to change my Name

Hello, Pls change my login name to Awadhesh instead of awadhesh if possible. it will be more better if it become Awadhesh Pandey. Thanks a lot. Awadhesh (2 Replies)
Discussion started by: Awadhesh
2 Replies

3. Solaris

Change IP

hello How can i change the ip address on my solaris sun 9 server ? thank you (7 Replies)
Discussion started by: pascalbout
7 Replies

4. Shell Programming and Scripting

change wc -l

Hi, I would like realize a script that it can change " wc -l" with "wc -l | sed 's/ //g'", but my problem is that i can have a pipe ,a variable ( many variable different) or a file after wc -l ?how i could test this several case ? wc -l | cut -d' ' -f1` if wc -l ${F} | awk... (1 Reply)
Discussion started by: francis_tom
1 Replies

5. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

6. Shell Programming and Scripting

Change the content of files but not change the date

I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (0 Replies)
Discussion started by: ust3
0 Replies

7. Shell Programming and Scripting

Change the content of files but not change the date

I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (7 Replies)
Discussion started by: ust3
7 Replies

8. SCO

How to change raid controller driver ? (hardware change)

Hello I'm trying to virtualize an instance of Sco Unix 5.0.5 in VirtualBox (called VM-A) , but sco I have problems set to launch with the new raid controller . The physical machine has a raid controller adaptec (alad driver) but VirtualBox uses buslogic (blc driver) What ... (3 Replies)
Discussion started by: flako
3 Replies
mktimer(3C)															       mktimer(3C)

NAME
mktimer - allocate a per-process timer SYNOPSIS
DESCRIPTION
The function is used to allocate a per-process timer using the specified system-wide clock as the timing base. returns an unique timer ID of type used to identify the timer in timer requests (see gettimer(3C)). specifies the system-wide clock to be used as the timing base for the new timer. specifies the mechanism by which the process is to be notified when the timer expires. supports one per-process timer with a of and of If is the system causes a signal to be sent to the process whenever the timer expires. For the machine-dependent clock resolution and maximum value are and seconds, respectively. These constants are defined in RETURN VALUE
Upon successful completion, returns a which can be passed to the per_process timer calls. If unsuccessful, returns a value of and sets to indicate the error. ERRORS
fails if any of the following conditions are encountered: [EAGAIN] The calling process has already allocated all of the timers it is allowed. [EINVAL] is not defined, or does not allow the specified notification mechanism. FILES
SEE ALSO timers(2), getclock(3C), gettimer(3C), reltimer(3C), rmtimer(3C), setclock(3C), thread_safety(5). STANDARDS CONFORMANCE
mktimer(3C)
All times are GMT -4. The time now is 08:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy