Disable services in Solaris 10

To disable a service you have to be root or have a sudo, for example, i want to disable puppet: I will disable the nfs server:

May 23, 2011 · 1 min · 26 words · Shafiq Alibhai

How To Get The Current Epoch Time (Unix Timestamp)

<td> <code>time</code> </td> <td> <code>time()</code> </td> <td> <code>Time.now</code> (or <code>Time.new</code>). To display the epoch: <code>Time.now.to_i</code> </td> <td> <code>import time first, then int(time.time())</code> </td> <td> <code>long epoch = System.currentTimeMillis()/1000;</code> </td> <td> <code>epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;</code> </td> <td> <code>DateDiff("s", "01/01/1970 00:00:00", Now())</code> </td> <td> <code>calendar:datetime_to_gregorian_seconds(calendar:now_to_universal_time( now()))-719528*24*3600.</code><br /> OR<br /> <code>element(1, now()) * 10000 + element(2, now()).</code> </td> <td> <code>SELECT unix_timestamp(now())</code> </td> <td> <code>SELECT extract(epoch FROM now());</code> </td> <td> <code>SELECT (SYSDATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) *&lt;br /> 24 * 60 * 60 FROM DUAL <td> <code>SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())</code> </td> <td> <code>Math....

September 30, 2010 · 1 min · 144 words · Shafiq Alibhai