Jump to content

Date/Time in command line


gsg

Recommended Posts

Is there an easy way to get tcadmin to put the current date and time in a command line? For some log files, you have to specify the name of the logfile, and when it includes the date, I can't figure out how to put said date in.

Link to comment
Share on other sites

yes, thats what i'm saying. I want to include the current date and time as part of the log file name. and that has to be specified in the command line. I can't figure out how to get tcadmin to parse the command line in such a way as to include the date and time.

Link to comment
Share on other sites

Ok... maybe an example will help..

 

In my command line ( for linux server ), lets say its -run -server -log DATEGOESHERE

 

What variable or value do I need to use to get it to replace DATEGOESHERE with the.. date. I tried `date %y-%m-%d` but it just processes that directly and doesn't replace it with the actual date.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 14 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use