Search Results

Search: Posts Made By: SunilB2011
1,696
Posted By SunilB2011
Thanks, It worked.
Thanks, It worked.
1,696
Posted By SunilB2011
Delete characters & find unique IP addresses with port
Hi,

I have a file having following content.


<sip:9376507346@97.208.31.7:51088
<sip:9907472291@97.208.31.7:51208
<sip:8103742422@97.208.31.7:51024
<sip:9579892841@97.208.31.7:51080...
1,455
Posted By SunilB2011
Thanks. The awk command worked fine. Best...
Thanks. The awk command worked fine.

Best Regards,
Sunil
1,455
Posted By SunilB2011
Extract a specific string from a file
Hi,
I have a file whose contents are as follows.


2013-03-08/15:09:20.134 INFO 00000000-00000000 0034 09700400 CON_IN SessionID:ED5E1400-4805-85E2-17B2-5BE45684886A Connection...
968
Posted By SunilB2011
Thank you for the help. It works fine now.:)
Thank you for the help. It works fine now.:)
968
Posted By SunilB2011
Help needed on If Else
Hi,

I am using "nc" command to test connectivity to Application ports.

I am getting following outputs in case of success & failed scenarios & I am re-directing it to a file.

FLPROVP02...
Forum: Red Hat 06-22-2012
24,758
Posted By SunilB2011
Thanks. Your solution worked. The issue is...
Thanks. Your solution worked. The issue is resolved.

---------- Post updated at 11:31 AM ---------- Previous update was at 11:27 AM ----------
Forum: Red Hat 06-21-2012
24,758
Posted By SunilB2011
Unable to access NFS share on Solaris Server from Linux client
Hi,

I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server.

On the NFS Server, in /etc/dfs/, I added following line to dfstab file.

...
Forum: Solaris 06-21-2012
3,850
Posted By SunilB2011
Can't access NFS Share on Solaris Server from a Linux Client
Hi,

I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server.

On the NFS Server, in /etc/dfs/, I added following line to dfstab file.



&...
Forum: Solaris 02-11-2012
17,048
Posted By SunilB2011
After re-starting the cron, it seems to be...
After re-starting the cron, it seems to be working fine. I will monitor the execution of cron job for few days.

Thanks to everyone for the help provided.
Forum: Solaris 02-10-2012
17,048
Posted By SunilB2011
After this change, the script is getting executed...
After this change, the script is getting executed from Crontab.

Now I want to schedule the script to run at 00:01 hours every night.

So I set up the crontab as

1 0 * * * /sbin/sh...
Forum: Solaris 02-10-2012
17,048
Posted By SunilB2011
The script is executing fine when running it as a...
The script is executing fine when running it as a root user from the command line.

---------- Post updated at 04:18 PM ---------- Previous update was at 04:16 PM ----------



Got the...
Forum: Solaris 02-10-2012
17,048
Posted By SunilB2011
Following is the outpuit ...
Following is the outpuit


(root@IDC4VASAPP07)root@IDC4VASAPP07 # tail -50 /var/cron/log
< root 5088 c Sat Feb 11 03:17:00 2012
< root 5087 c Sat Feb 11 03:17:00 2012
> CMD: /var/tmp/r.sh...
Forum: Solaris 02-10-2012
17,048
Posted By SunilB2011
Cron job is not running
Hi,

I have set up the crontab as follows.

(root@IDC4VASAPP07)root@IDC4VASAPP07 # crontab -l
0-59 * * * * /var/tmp/r.sh
0-59 * * * * date >> /var/tmp/log
...
3,519
Posted By SunilB2011
I will try this solution tomorrow
Hi,

Thanks, I will try this solution tomorrow & then revert to you.

Regards,
Sunil

---------- Post updated 05-31-11 at 10:11 AM ---------- Previous update was 05-30-11 at 08:13 PM...
3,519
Posted By SunilB2011
File getting uploaded if filename is hard coded instead of using $file_name
Hi,

I am able to FTP the file if I hard code the filename. But if I use $file_name instead of filename, the file is not uploaded on FTP.


bash-2.03# cat upload.sh
#!/bin/bash
function...
3,519
Posted By SunilB2011
Giving Not connected Message twice while connecting to FTP
Hi,

I made the changes. but now it gives Not connected message 2 times while connecting to FTP. The User name & password are correct as I am able to connect to FTP manually.


bash-2.03# echo...
3,519
Posted By SunilB2011
Still not able to login to FTP
Hi,

Still not able to login to FTP from the script.


bash-2.03#
bash-2.03# echo $hostname
97.253.98.14
bash-2.03# echo $user_name
postgres
bash-2.03# echo $pass_word
postgres...
3,519
Posted By SunilB2011
Not logging to FTP automatically
Hi,

I have set the variables as follows.


bash-2.03# echo $hostname
97.253.98.14
bash-2.03# echo $password
postgres
bash-2.03# echo $file_name
ONLINE_WAIVER_2011052816.txt
bash-2.03#...
3,519
Posted By SunilB2011
I need more solutions
Hi Friends,

I need some more solutions.

Kindly help at the earliest.

Thanks,
Sunil
3,519
Posted By SunilB2011
FTP a file on Hourly basis
Hi,

I have to upload a file test_201105281100.txt to a ftp location.

The files will be created on hourly basis like test_201105281100.txt, test_201105281200.txt & so on.

After a file is...
2,146
Posted By SunilB2011
Thank you all for your help. My issue is...
Thank you all for your help. My issue is resolved.

Best Regards,
Sunil
1,740
Posted By SunilB2011
This is working.
Thanks a lot. This solution is working fine.

Regards,
Sunil
1,740
Posted By SunilB2011
Copy & Append text
Hi,

I have a huge text file that contains contents like below.


echo 2VPMUM1CMP01_2011-05-10_18_CPU_Stats_1.txt
awk -F, '{sub ("%","",$8);sum+=100-$8;if (100-$8>max){max=100-$8}}END{printf...
2,146
Posted By SunilB2011
How can I run this command on multiple files at a time?
Hi,

How can I run this command on multiple files at a time?

Thanks,
Sunil
Showing results 1 to 25 of 35

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