Search Results

Search: Posts Made By: liviusbr
4,628
Posted By liviusbr
Indeed I am not extracting solely what I need....
Indeed I am not extracting solely what I need. the thing is I cannot use line numbers in my extraction script, since those might change, so I need to find patterns to look for.

so from this...
4,628
Posted By liviusbr
Extract lines from output
Hi everyone,


I have the following string that repeats in a file.



I want to get the following output :

"CDN_NF2_SGW_INT_443"

172.23.120.40:443

...
4,273
Posted By liviusbr
Extract strings from output
I am having the following output when executing a dig command :




dig @1.1.1.1 google.com +noall +answer +stats


; <<>> DiG 9.11.4-P1 <<>> @1.1.1.1 google.com +noall +answer +stats
...
2,732
Posted By liviusbr
Hi, This is what I have tried : ...
Hi,


This is what I have tried :



LOCALBASE=/data/backups
SERVER=10.2.37.70
USER=test
PASSWD=test
INPUT=/data/backups/today.txt
FILETYPE=binary

## ftp put doesn't create directories...
2,732
Posted By liviusbr
Upload latest file to ftp
Hi,

I want to create a script that parses the content of a file (on each line there is a filename with full path containing the latest fiels created on that day) and uploads every file to a ftp...
3,054
Posted By liviusbr
Watchdog for a specific process trigger another process
Hi,

I am willing to build a script that does a "ps-ef" or "top" on a specific process, and if it finds it running to start another process.
Any suggestions to do this in a optimized way?
...
6,121
Posted By liviusbr
Hi VidyaHar85, This is what I see by piping...
Hi VidyaHar85,

This is what I see by piping my command towards what you've sent me :

/opt/transcodingProfiles 92

This is what I would like to get :

14501 92

Thanks,

Liviu
6,121
Posted By liviusbr
Yes, audioPort in numeric format and CPU...
Yes, audioPort in numeric format and CPU utilization (which is the 3rd numeric column in the output).
6,121
Posted By liviusbr
Extract a column from ps -aux command
Hi,

I have the following output :
root 9296 81.7 0.2 1115328 20856 ? Sl 14:38 1:00 /opt/h264rtptranscoder.bin --videoPort=14500 --audioPort=14501
--serverPort=14500...
1,602
Posted By liviusbr
What would be the fastest way to sort this out ? ...
What would be the fastest way to sort this out ?
Tried actually the following :

#!/bin/bash MAC_ADDR=`ifconfig eth0 | sed -n 's/.*HWaddr \([a-f0-9:]*\).*/\1/p'` IP=`(curl...
1,602
Posted By liviusbr
Thanks, it was really helpful. I guess cd /root...
Thanks, it was really helpful.
I guess cd /root && ./script.sh will also right straight from rc.local ...right ?
1,602
Posted By liviusbr
lrwxrwxrwx 1 root root 4 Mar 29 2012 /bin/sh ->...
lrwxrwxrwx 1 root root 4 Mar 29 2012 /bin/sh -> dash

Linux ip-10-37-161-45 3.2.0-40-virtual #64-Ubuntu SMP Mon Mar 25 21:42:18 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
1,602
Posted By liviusbr
Sh vs ./
Hi guys,

I have a small script which reads my IP address from an URL and then sets it :

#!/bin/bash
MAC_ADDR=$(ifconfig eth0 | sed -n 's/.*HWaddr \([a-f0-9:]*\).*/\1/p')
IP=($(curl...
1,937
Posted By liviusbr
Monitor the CPU load for each process and total
Hi guys,

I have to set up a script which monitors the amount of AVG CPU load per each process and also the total load for a sum of processes.

The processes have the same name, I can only...
1,632
Posted By liviusbr
Hi Ravinder, VMSTAT is good, but does not...
Hi Ravinder,

VMSTAT is good, but does not display the process name/path. Any way to do that ?

---------- Post updated at 05:59 PM ---------- Previous update was at 04:34 PM ----------

I...
1,632
Posted By liviusbr
Help in making a basic bash script
Hi All,

I am trying to monitor CPU load of few processes, with the same name.
The output that I get from top is the following

28171 root 20 0 1089m 21m 3608 S 103 0.3 15:16.89...
1,314
Posted By liviusbr
Hmmm, I dont think mixing that software's...
Hmmm, I dont think mixing that software's proprietary commands with linux commands would actually work I'll give it a try tomorrow.
What I was thinking, but not sure if it's doable :

1. launch a...
1,314
Posted By liviusbr
Hi, It sends the output to the display but...
Hi,

It sends the output to the display but when I add ">" or ">>" it just outputs the first line into the file. I guess it's something related to the EOL character they might have badly...
1,314
Posted By liviusbr
Transfer output of a proprietary command to a file
Hi Guys,

My problem looks simple. I have a software-proprietary command (not linux) that provides an output, let's say 200 lines.
Unfortunately the dumb coders of the software did not include the...
2,694
Posted By liviusbr
I'm still getting an error when running the...
I'm still getting an error when running the script :

[: previousSearch: bad number
2,694
Posted By liviusbr
Let me make it more clear for you. I am using...
Let me make it more clear for you.
I am using some application that puts all the logging under /var/adm/messages. Once i capture the string "Error" I need to find out what actually caused it, 1000...
2,694
Posted By liviusbr
Help On tail script
Hi Guys,

I would like to create a script which tails the content of a log file in real time, looks for a specific string , like "ERROR" and captures in a text file the previous 10.000 lines that...
4,093
Posted By liviusbr
Hi Corona, This is how the DHCP messages...
Hi Corona,

This is how the DHCP messages look like in the logs

Nov 4 06:47:22 dhcp01 ZEMdhcp: 01/0010E7218F82: Got DHCPDISCOVER xid=0x2158b2c1 from 0.0.0.0 via 10.140.2.10, req-ip=None,...
4,093
Posted By liviusbr
Hi , Thanks, I did that change but still I...
Hi ,

Thanks, I did that change but still I am getting this error :

./test.bash: line 2: [: too many arguments


What could be wrong ?

---------- Post updated at 01:35 AM ----------...
4,093
Posted By liviusbr
Corona, What I try to do is simple : I try...
Corona,

What I try to do is simple : I try to count the number of DHCP discovers for that specific MAC address (0012DFCFC492) and the IP address starting with 192.168.

The initial string looks...
Showing results 1 to 25 of 26

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