12-24-2010
Recent GNU versions of 'ls' have the option '--full-time' which will provide output like:
-rw-r--r-- 1 user users 0 2010-12-23 22:00:00.000000000 -0800 testfile
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have to capture the creation date and time stamp for a file. The ls command doesn't list all the required information. I need year, month, day, hour, minute and second.
Any ideas... (1 Reply)
Discussion started by: Xenon
1 Replies
2. Shell Programming and Scripting
I'm trying to write a script that checks the DTS of a file the compares it to the current time. If greater that 60 mins has gone by and the file has not been written to alert.
So far I have the time pulled from the file but I dont know how to compare the times against a 60 min difference.
... (2 Replies)
Discussion started by: jarich
2 Replies
3. UNIX for Dummies Questions & Answers
I am trying to insert a line with a date stamp in a file that is used to monitor activity in one of our directories. By doing this, I want to grep that file each day and go to the last entry for each time a error occurred and pull all errors generated if any exist. If error exists I want that error... (3 Replies)
Discussion started by: shephardfamily
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Wondering if there is have a date added at the end of a test string. I have a hypothetical text file day one:
John
Paul
George
When the file day one is output, I'd like it to read something like this:
John 101406
Paul 101406
George 101406
Day two, when the same text file... (0 Replies)
Discussion started by: JimmyFlip
0 Replies
5. Shell Programming and Scripting
Looking for a shell script or a simple perl script . I am new to scripting and not very good at it .
I have 2 directories . One of them holds a text file with list of files in it and the second one is a daily log which shows the file completion time. I need to co-relate both and make a report.
... (0 Replies)
Discussion started by: breez_drew
0 Replies
6. Shell Programming and Scripting
Hi
I use "touch -t xxxxxxxx" command to set date/time stamp of a file. My requirement is to read the date/time stamp of a file and apply it to another file.
Is there anyway to do it simple instead of manually taking date/stamp of first file?
TIA
Prvn (2 Replies)
Discussion started by: prvnrk
2 Replies
7. Shell Programming and Scripting
Hi!
Please see our current script:
#!/usr/bin/ksh
if (egrep "This string is found in the log" /a01/bpm.log)
then
mailx -s "Error from log" me@email.com, him@email.com </a01/bpm.log
fi
To the above existing script, we need to add the following change:
1) After finding the string,... (7 Replies)
Discussion started by: atechcorp
7 Replies
8. Shell Programming and Scripting
hi,
i have a Archive directory in which files are archived or stored with date and time stamp to prevent over writing.
example:
there are 5 files
s1.txt
s2.txt
s3.txt
s4.txt
s5.txt
while moving these files to archive directory, date and time stamp is added.
of format `date... (9 Replies)
Discussion started by: Little
9 Replies
9. Shell Programming and Scripting
I am developing one script which will take log file name, output file name, date, hour and minute as an argument and based on these inputs, the script will scan and capture all the error(s) that have been triggered from a given time. Example: script should capture all the error after 13:50 on Jan... (2 Replies)
Discussion started by: ROMA3
2 Replies
10. Shell Programming and Scripting
I have a file hello.txt which was created today (today's date timestamp)
I wish to change its date timestamp (access, modified, created) to 1 week old i.e one week from now.
uname -a
SunOS mymac 5.11 11.2 sun4v sparc sun4v
Can you please suggest a easy way to do that ? (12 Replies)
Discussion started by: mohtashims
12 Replies
RUSH(8) Gnurush RUSH(8)
NAME
rush - a restricted user shell
SYNOPSIS
rush [-F STRING] [-f DIR] [-n NUM] [--forward] [-H]
rush {-v | -h | --usage}
DESCRIPTION
GNU rush is a restricted user shell (R-U-SH), designed for sites that provide only limited remote access to their resources. This could be
Subversion or Git repositories, upload sites accessible only by Scp, or similar services.
Using a sophisticated configuration file, GNU rush gives the administrator complete control over the command lines that users are able to
execute, as well as over the access to and usage of system resources. Usually virtual memory, CPU time, etcetera, are determined by this
system wide configuration.
OPTIONS
-c COMMAND
Specify a command to run.
-C TEST | --security-check=TEST
Configure security checks for the main configuration file.
-d NUM | --debug=NUM
Set debugging level.
--show-default
Disply the built-in default configuration.
-t | --test | --lint [FILE]
Run in test mode. The optional argument FILE determines the location of an alternate configuration file to be used. In case also
the option '-c' is specified, then rush will emulate normal processing for the given command, but will not actually execute it.
-u NAME | --user=NAME
Emulate shell access by the user NAME. The option '--test' is implied. The use of this option is allowed only for root and in
conjunction with the further option '-c'.
-v | --version
Display program version.
-h | --help
Display a short help message.
--usage
Display a concise usage summary.
SEE ALSO
The full documentation for GNU Rush is maintained as a Texinfo manual. If the info and rush programs are properly installed at your site,
the command
info rush
should give you access to the complete manual.
See also rushlast(1) and rushwho(1).
AUTHOR
This text was written by Mats Erik Andersson for the Debian project, since the original source supplies a documentation only in the form of
a GNU Texinfo manual.
GNU Rush 1.7 December 2010 RUSH(8)