Welcome, Guest
Username Password: Remember me

Write Script to see current date, time, username, and current director
(1 viewing) (1) Guest
Shell Script
  • Page:
  • 1

TOPIC: Write Script to see current date, time, username, and current director

Write Script to see current date, time, username, and current director 1 year, 1 month ago #633

  • scmjobs
  • OFFLINE
  • Junior Boarder
  • scmier crazy
  • Posts: 32
  • Points: 26
  • Karma: 0
Write Script to see current date, time, username, and current directory???
Regards,
scm folks

Check out my blog: community.scmgalaxy.com/pg/profile/sgadmin

Re: Write Script to see current date, time, username, and current director 9 months, 2 weeks ago #687

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44591
  • Karma: 4
  • Honor Medal 2009
 
#!/bin/bash
#
# Linux Shell Scripting Tutorial 1.05r3, Summer-2002
#
# Written by Vivek G. Gite <vivek@nixcraft.com>
#
# Latest version can be found at http://www.nixcraft.com/
#
# Q5
#
echo "Hello, $LOGNAME"
echo "Current date is `date`"
echo "User is `who i am`"
echo "Current direcotry `pwd`"
 
#
# ./ch.sh: vivek-tech.com to nixcraft.com referance converted using this tool
# See the tool at http://www.nixcraft.com/uniqlinuxfeatures/tools/
#

 
 
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar
  • Page:
  • 1
Time to create page: 1.35 seconds

     
    
Home Forum