Search Results

Search: Posts Made By: freakygs
1,627
Posted By freakygs
Ssh2 key has been overwritten, need a way to restore
I had generated a ssh2 key on my AIX box, to receive files from other AIX and Linux systems.

Key Name: id_ssh2_server.pub

However this ssh2 key (both public and private keys) has been...
1,137
Posted By freakygs
Yeah... Second call for TABLE4 is not having any...
Yeah... Second call for TABLE4 is not having any alias, so that entry shouldn't be deleted
2,044
Posted By freakygs
Thanks for your time guys, But thats not my...
Thanks for your time guys,

But thats not my requirement, my requirement was to write a shell script, which would read the sql statement as an input, and could identify TABLENAMES and...
1,137
Posted By freakygs
Formatting a file - Remove Duplicate
Hi I have a file in the following format. Basically the file contains tablename and their aliases:

TABLE1
TABLE1 A
TABLE2
TABLE2 B
TABLE3
TABLE4
TABLE4 C
TABLE4

Upon formatting an sql...
2,044
Posted By freakygs
Read SQL statement in Script
Hi Guys..

need some urgent help... I am stuck in something badly

I need to write a script which would read a sql statement (which might be a join/inner join/select/sub select etc. )

I need...
Forum: AIX 05-04-2011
7,744
Posted By freakygs
Identify User Attributes
SOS Guys...

Is there any way to determine the user attributes, mainly if that userid is set as never expire?
I do not have admin rights, and I'm working on AIX 5.3

I've tried :

lsuser -f...
2,669
Posted By freakygs
echo "hi" | tee -a a.txt >> b.txt
echo "hi" | tee -a a.txt >> b.txt
4,816
Posted By freakygs
try using printf instead of echo
try using printf instead of echo
2,402
Posted By freakygs
answer to both is yes.. @arex986: Yes you...
answer to both is yes..

@arex986: Yes you can store logs in script directory, can parametrize it as well, but the parameter has to be an Autosys Global Variable

@Arpit: yes you can put box job...
5,382
Posted By freakygs
Box type job is a container which can have...
Box type job is a container which can have watcher job, command job and other box jobs...

- use it to group similar jobs together
- Box can also be scheduled, ON ICE, OFF ICE, ON HOLD, OFF HOLD...
13,939
Posted By freakygs
I am getting it with '%s' in csh... % date...
I am getting it with '%s' in csh...

% date +%s
1295506920
Forum: AIX 01-20-2011
2,481
Posted By freakygs
https://www.unix.com/unix-dummies-questions-answers...
https://www.unix.com/unix-dummies-questions-answers/22190-how-copy-files-local-computer-server.html

your requirement is vice versa, but solution would be same...
13,939
Posted By freakygs
use %S (S in CAPS)
use %S

(S in CAPS)
56,136
Posted By freakygs
after I did an 'su <username> I am getting same...
after I did an 'su <username> I am getting same value for LOGNAME and USER...
Is this output specific to 'root' ?
56,136
Posted By freakygs
Hey rdcwayx.. Could you please post the...
Hey rdcwayx..

Could you please post the result as well, I work on a Production UNIX machine, and I don't have cron rights.
Even I am following this post...
I tried using su but both $LOGNAME...
3,932
Posted By freakygs
a=`ls -rt ~/boo* 2>/dev/null | tail -1 | awk...
a=`ls -rt ~/boo* 2>/dev/null | tail -1 | awk -F"_" {'print $NF'}`
a=`expr ${a:-0} + 1`
cp ~/.bash_history ~/boo_$a
3,932
Posted By freakygs
Instead of making boo1, boo2 etc. I'd suggest you...
Instead of making boo1, boo2 etc. I'd suggest you to create file names with boo_<date> ; eg. today's file would be boo_20110119. It would be easier to identify also.

Try this:

0 0 * * 0,3 cp...
Forum: Solaris 01-19-2011
13,978
Posted By freakygs
you are missing contents or message body. ...
you are missing contents or message body.

Try this:
mailx -s "TEST" <mail> < /tmp/body.dat


Hope this helps.
Forum: Linux 01-12-2011
23,905
Posted By freakygs
uptime command would give the output in following...
uptime command would give the output in following format:



You would need to subtract X days from current date to get the last reboot date.

Alternatively, You can use the following command...
10,163
Posted By freakygs
Are you putting this into a variable? like: ...
Are you putting this into a variable? like:

a=`cat $1 |cut -d'\' -f2- | sed 's/EMEA//g;s/\\//g;s/,//g'`


If so, try this:

cat $1|cut -d'\' -f2- | sed 's/EMEA//g;s/\\//g;s/,//g' | read a
Forum: Linux 01-11-2011
23,905
Posted By freakygs
If you just need last shutdown; try using the...
If you just need last shutdown; try using the command:
uptime

you can do some calculation with curent date-time to get the exact shutdown date.

Note: There might be few hours difference; as...
1,365
Posted By freakygs
go to that directory and execute: find ....
go to that directory and execute:

find . -name '200[89]*' -exec rm {} \; or

or from anywhere:
find <path> -name '200[89]*' -exec rm {} \;

if u just wanna validate, what files would be...
7,511
Posted By freakygs
I would rather suggest you make a password file...
I would rather suggest you make a password file at each of the users' home directory, with read write permissions only to that user (600); that file would contain ID and password of that user.

In...
5,693
Posted By freakygs
I am not sure what output are you looking at, it...
I am not sure what output are you looking at, it would be great if you can elaborate a bit. meanwhile try this:

echo $x | cut -d' ' -f1
5,922
Posted By freakygs
What is Tracked Alias
I was running 'type' command in AIX, and found a term 'tracked alias' for some of the commands:

> type ls
ls is a tracked alias for /usr/bin/ls

> type cp
cp is a tracked alias for /usr/bin/cp...
Showing results 1 to 25 of 40

 
All times are GMT -4. The time now is 01:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy