Search Results

Search: Posts Made By: tungaw2004
1,773
Posted By tungaw2004
variable has no value if run the script automatically/scheduled
Hi All,

I am using ksh as the shell. I have a script that should store variable after executing "onstat" on informix. I can execute it successfully without any issue if run manually, however the...
2,900
Posted By tungaw2004
there's nothing inside the .profile. it's just...
there's nothing inside the .profile. it's just contain the HISTFILE and PATH. the path is already defined on the script. Actually the script runs but stop on the part

export INFORMIXDIR=$IFXDIR...
2,900
Posted By tungaw2004
ksh script not working if triggered by scheduler
I have a script that works well if i execute manually using informix user. However, it does not execute properly if triggered using the scheduler (ESP). This is the partial part where it doesn't...
1,975
Posted By tungaw2004
Thanks
Hi,

Thanks a lot... It's working now... I am able to remove what ever no. of lines...
1,975
Posted By tungaw2004
file manipulation
Hi,

i have a file which has xxx number of lines and i want to delete/remove the last 20 lines...

i did "cat x|awk '{print NR-20}'"

using sed, how should i do it?
5,788
Posted By tungaw2004
Delete logs every 3 hours
Hi,

I want to setup a cronjob that will delete logs every 2 hours. I have script that delete logs per day. but logging is too big and i want to run a conjob that will delete every 2 hours.

...
12,121
Posted By tungaw2004
trim file
Hi,

I have a 6G log , which is unusual to read and I want to minimize it by removing some part on the upper portion( around 4GB). what should i do? can you please help me?

thanks.
6,166
Posted By tungaw2004
connect to server using ssh
hi,

i have script that connects to a unix server. however, i want to add condition that if it cannot connects in 10 attemps, it will send email to me.

while [ condition ] -a ${COUNT} -lt...
15,268
Posted By tungaw2004
bluetorch is correct. your / filesystem is full....
bluetorch is correct. your / filesystem is full. not the /tmp. /tmp is just a part of / filesystem. You might have some core dump files inside /.
1,502
Posted By tungaw2004
ssh keys monitoring
Hi,

I have ssh keys (id_rsa and id_rsa.pub). However, every once in a while, someone deletes these keys.

here's what i want to do :

1. on my server, it will ssh user@password into the...
14,689
Posted By tungaw2004
Tar and gzip
Here is the scenario:

1. I have a 5.7 GB log which i want to archive. However, my problem is the hdisk has no more space available.

Solution i want to have :

a. create a backup of the...
14,689
Posted By tungaw2004
tar and gzip
Hi,

I would like to have a combined gzip and tar that will compress and create multiple output tar.gz files. I want to have multiple files output because i cannot create an archive because there...
7,305
Posted By tungaw2004
I have read the instructions as you have said....
I have read the instructions as you have said. but it's still not working.
677,094
Posted By tungaw2004
Hi, I did the same as you did. but what is...
Hi,

I did the same as you did. but what is the reason why i can't make it work? btw, this is my script.
if {$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg}...
7,305
Posted By tungaw2004
sftp not working as cronjob
hi,

I have a script that will automatically login into a server and get a file. it is working fine if i run it on a command line. however, when i tried to run it as a cron job, it is not...
3
3,070
Posted By tungaw2004
Thanks, it's working now. i just want to...
Thanks,

it's working now. i just want to add some checking.

1. if $F_NAME does not exists,
call the script and it still problem, call again (10x).
3
3,070
Posted By tungaw2004
diff
hi all,

i want to do this shell script.

create a script that will check the transferred file vs. orig file.
1. diff the file1 and file2
2. if difference found, retain the original...
1,374
Posted By tungaw2004
find / -name "filename" -print
find / -name "filename" -print
15
3,715
Posted By tungaw2004
anbu, i already did your suggestion... i...
anbu,

i already did your suggestion... i know, it will work that way, but i want to use the foreach command and the get the first value of the record on the file to be the filename.
15
3,715
Posted By tungaw2004
follow up question..... the script shows...
follow up question.....

the script shows that it will create up to 2 files.... can we make it more flexible? i mean, it there is additional file to be created........ maybe up to 100 files. where...
15
3,715
Posted By tungaw2004
You are great Jacoden..... I tested it and it's...
You are great Jacoden..... I tested it and it's working now.... How i wish i know the same thing as you... thank you very much for the help. very appreciated.
15
3,715
Posted By tungaw2004
Sad to say, I dont have python installed...
Sad to say,

I dont have python installed and will not use python.

thanks.
15
3,715
Posted By tungaw2004
Hi, you can give me some variation...
Hi,

you can give me some variation solution. i think it would be better to use awk to parse.
15
3,715
Posted By tungaw2004
parsing
Hi,

I want to parse this file....

( 0 , 0 ) =>heading1
( 0 , 1 ) =>value1.1a
( 0 , 2 ) =>value2.1a
( 1 , 0 ) =>heading2
( 1 , 1 ) =>value1.1b
( 1 , 2 ) =>value2.1b
( 2 , 0 ) =>heading3...
2,276
Posted By tungaw2004
Thank you very much..... it's working now...
Thank you very much..... it's working now...
Showing results 1 to 25 of 34

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