10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Team,
Please help me with the below question.
SunOS 5.10
Shell: -bash
I am trying to find the original user who executed a command on my development server.
In my dev server users login using their personal id and sudo to a common id using 'sudo -u commonid -i'. Once logged in as... (6 Replies)
Discussion started by: sam99
6 Replies
2. Shell Programming and Scripting
Hi,
i have requirement to find logged in user based on process id. i have below scenario.
1. all my users will logon to unix box using ssh from windows system.
2. after successful logon they will sudo to common user. ex. sudo -su edadm
lot of users are executing jobs from edadm user and... (2 Replies)
Discussion started by: tmalik79
2 Replies
3. Shell Programming and Scripting
Hi,
How to change the filenames with timestamp in sub folders
I have the following code to select the records.
find . -type f -name '*pqr*' -ctime 1 -print
The following is the example
app_root_dir="/`echo $ScriptDir | cut -d'/' -f2`"
$app_root_dir/../BadFiles directory
uvw.bad... (3 Replies)
Discussion started by: bobbygsk
3 Replies
4. AIX
In Unix If we executed any command where will generate the particluar log related to command in Unix. (4 Replies)
Discussion started by: victory
4 Replies
5. Shell Programming and Scripting
Suppose there are log entries like
16 Jul 2012 11:46:45,628 SendToClientService ExecuteThread: '256' for queue: 'weblogic.kernel.Default (self-tuning)': Received an unknown fault.
16 Jul 2012 11:47:45,650 SendToClientService ExecuteThread: '256' for queue: 'weblogic.kernel.Default... (4 Replies)
Discussion started by: snehasish_jana
4 Replies
6. AIX
Hi
Script not getting executed via cron but executes successfully when executed manually. Please assist
cbspsap01(appuser) /app/scripts > cat restart.sh
#!/bin/ksh
cd /app/bin
date >>logfile.out
echo "Restart has been started....." >>logfile.out
date >>logfile.out
initfnsw -y restart... (3 Replies)
Discussion started by: samsungsamsung
3 Replies
7. Shell Programming and Scripting
In shell we can find the status of last executed command by $?
In perl what is the command to find the status of last executed command...
Can any one please say???????????????
Thanks,
Prabhu (1 Reply)
Discussion started by: prsampath
1 Replies
8. Shell Programming and Scripting
Hi,
I need to do a script that find a specific data in var_5 and also the previous timestamp. This is the file I have:
var_1=data1
var_2=data2
var_3=data3
var_4=data4
var_5=data5
var_6=data6
var_7=data7
RESULT
PRINTOUTS:
6404
var_1=data8
var_2=data9
var_3=data10
var_4=data11... (7 Replies)
Discussion started by: gcsilva
7 Replies
9. Shell Programming and Scripting
hello All,
I need to invoke by perl script some program/command and monitor it for 5
minutes . In case it still running for more then 5 min I need to send a signal which will stop it.
I implemeted this as shown below by using eval & alarm
and I'd like to know if there is a better way to... (1 Reply)
Discussion started by: Alalush
1 Replies
10. UNIX for Dummies Questions & Answers
I am executing a find command in my script i.e
find $2 -type f -name '*.gif' -mtime +$1 -exec rm {} \;
how do i check that this command is executed properly.. i would lke t trap the errror and display my error message
kinly help.. this is an urgent issue. (1 Reply)
Discussion started by: vijay.amirthraj
1 Replies