Search Results

Search: Posts Made By: ashok.mp
2,505
Posted By ashok.mp
To replace ip octet
Hi Priya Amaresh,

Below script will get ipaddress and replace your desired octet at final echo command.
#!/bin/bash

gateway=`netstat -r | grep gateway | awk '{ print $2}'`
IFS="."
count=1...
5,718
Posted By ashok.mp
Time script
Hi a1_win,

Below script will execute in infinite while loop. When current time (cur_time) reaches script kill time (kill_time) it will exit the script.
#!/bin/bash

kill_time=1800
while true...
Showing results 1 to 2 of 2

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