10 More Discussions You Might Find Interesting
1. Red Hat
Hi,
I am facing a problem with the command - TOUCH on Linux.
See the example below:
File on Linux: rw-rw-r-- user1 user1 Jan 01 09:00 test.txt
The file - test.txt was created by the user - user1.
Now, I want to change the date and time, but using other user - user2
The user2... (12 Replies)
Discussion started by: brjohnsmith
12 Replies
2. UNIX for Advanced & Expert Users
Here is the part of the script: I have modified the file name.:)
SSFILE=${My_HOME_DIR}/log/my_file_ss.log
export MM=`date '+%m'`
export DD=`date '+%d'`
export HH=`date '+%H'`
export MIN=`date '+%M'`
export HOURAGO=`echo ${HH} -1 |bc `
echo $HOURAGO
export TTIME=${MM}${DD}${HOURAGO}00... (5 Replies)
Discussion started by: N1a_Raider
5 Replies
3. Shell Programming and Scripting
Hi,
I wish to change time stamp of a directory with all its subdirectories and files on server.
I am able to find following two ways but want to know which will be the better one. I have not tried anyone of them because I am not sure if it can effect my data:
find * -type d -exec touch... (5 Replies)
Discussion started by: bioinfo
5 Replies
4. UNIX for Dummies Questions & Answers
questions:
a. where can I customized the password of userid in solaris? say I wanted 10digits long, all caps?
thanks (4 Replies)
Discussion started by: lhareigh890
4 Replies
5. Shell Programming and Scripting
Hi,
1#what is the command to get name associated with userid?
2#I am using unix on Mainframes thru OMVS.
So any one know to to capture TSO command output to a variable on OMVS environment.
I tried with below script, but its not working!
#!/bin/ksh
output=$(tso whois PA1234)
echo... (6 Replies)
Discussion started by: prashant43
6 Replies
6. Red Hat
Hi All,
I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty.
Can I just delete this userid? How can I investigate if userid have something to do with the application?
Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies
7. Shell Programming and Scripting
Hey guy,
how to make the log.txt file and record date and time when ls, touch and find command run?
Thanks
Boly (13 Replies)
Discussion started by: chenboly
13 Replies
8. UNIX for Dummies Questions & Answers
I have a folder with many subdirectories and i need to set the modified date to today for everything in it. Please help, thanks!
I tried something i found online, find . -print0 | xargs -r0 touch
but I got the error: xargs: illegal option -- r (5 Replies)
Discussion started by: glev2005
5 Replies
9. Shell Programming and Scripting
i want to find the files which are modified in last 30 to 120 minutes
i am using "find . -mmin +30 -mmin -120 "
it is giving me the error
find: bad option -mmin
find: path-list predicate-list
can somebody help me out .
Thank you (5 Replies)
Discussion started by: Prat007
5 Replies
10. UNIX for Advanced & Expert Users
I would like to know the difference between the real user-id and the
effective user-id. If user-A runs a program owned by user-B then
which is the real user-id and which is the effective user-id ? (1 Reply)
Discussion started by: sundaresh
1 Replies