Download Blank Third Party Assessment Type : Vendor Assessment Short Name Question / Description Answer / Value Name Enter the name TPA: Project Name Whirlpool project name requesting third party or service provider connection * TPA: Project Owner Whirlpool project owner requesting third party […]
Tag: unix
[HowTo] Replace ip address using sed
Following one-liner will search for a ip address pattern in the specified file and replace it with the one provided : sed ‘s/[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}/IPADDRESS-COMES-HERE/g’ /SourceFilename > /DestinationFilename
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: # svcs | grep puppet online 9:51:57 svc:/network/cswpuppetd:default I will disable the nfs server: # svcadm disable network/cswpuppetd:default
Puppet logs in solaris 10
/var/svc/log/network-cswpuppetd:default.log /var/svc/log/network-cswpuppetmasterd:default.log p.s. use `tail -f <log file name>`
Release Engineering 101 – Build Script
Each software platform will provide a way to write a script and invoke a sequence of build steps Unix shell scripts, make files, windows batch files etc can be used to define a build script. A framework / tool like ANT, helps in abstracting the script from a platform dependency and use simple XML file to […]
How To Get The Current Epoch Time (Unix Timestamp)
Perl time PHP time() Ruby Time.now (or Time.new). To display the epoch: Time.now.to_i Python import time first, then int(time.time()) Java long epoch = System.currentTimeMillis()/1000; Microsoft .NET C# epoch = (DateTime.Now.ToUniversalTime().Ticks – 621355968000000000) / 10000000; VBScript/ASP DateDiff(“s”, “01/01/1970 00:00:00”, Now()) Erlang calendar:datetime_to_gregorian_seconds(calendar:now_to_universal_time( now()))-719528*24*3600. OR element(1, now()) * 10000 + element(2, now()). MySQL SELECT unix_timestamp(now()) PostgreSQL SELECT extract(epoch […]