|
Newest Member
|
|---|
| advaxavardimb | |
| cool Statistics |
| | coolcommands: | 1330 | | Categories: | 83 | | Total queries: | 595502 | | Members: | 16439 | |
|
|
|
 |
|
|
Advanced Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
lt.pl - how to take perl localtime and display in human readable format |
Description
Here is a sample perl script on how to take localtime output and print date or time as required:
#!/usr/bin/perl
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year += 1900; print ("$mday/$mon/$year-$hour:$min:$sec\n");
|
Example
lt.pl |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: how to update an lpp_source and SPOT in NIM
Example: nim -o update -a source=/mnt -a packages=all -a gencopy_flags=-bqS -X lpp6100_01_01
[show me the details] |
coolcommand: dateconfig - setting date, time and NTP information in Linux with GUI
Example: dateconfig
[show me the details] |
coolcommand: kill all the processes of a particular user
Example: ps -fU username | awk '{ system ("kill "$2)}'
[show me the details] |
coolcommand: dmpmqlog - how to dump a formatted version of the Websphere MQ system log
Example: dmpmqlog -m MQBOBOQ1
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1152 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 49379 |
| Category AIX | 46267 |
| Category General UNIX | 43934 |
| solaris | 22927 |
| aix | 22116 |
|
|
|
|