i have serverA and serverB and i have a folder with same name an location in both servers.... Now i want to compare files in folder(serverA) with folder (serverB) if there are files missing in folderB then copy those files from folder(serverA) to folder(serverB) (1 Reply)
All, I need to write an unix shell script which inserts some records into a file located in remote servers.
* Get the input from the user and insert according the first row. It should be in ascending order.
123451,XA,ABA
123452,XB,ABB
123453,XC,ABC
123455,XE,ABE
123456,XF,ABF
123458,XG,ABG... (2 Replies)
Hi All,
I am a total noob to the Unix world, and i hope to learn a lot from this wonderful community. Here's my first post and question , i am trying to SCP a file to multiple servers (multiple destinations) through this little script :
#!/bin/ksh
# copy files
# File to be copied... (7 Replies)
I am trying to write a script that checks whether or not, a file exists on multiple servers.
My code / logic so far is:
#!/usr/bin/ksh
print "Enter File name to be checked"
read MYFILE
ssh server1 "
cd /var/opt/logs ;
if
then
... (4 Replies)
Hello,
I want to create a shell script that would check the file "/etc/default/kbd" for the entry KEYBOARD_ABORT=alternate on a list of SUN Solaris servers.
If this entry is not uncommented (without #) then I should get a message/error report for the host which does not have the setting... (3 Replies)
So I'm new to this sed command and I am trying to create a script that replaces ip addresses when I name a file but can't tweak it to work.
Here is what it looks like:
#!/bin/bash
#
file=$1
#
sed -e 's/-CPUaddr 10.30.10.166/-CPUaddr 10.30.10.151/g' -i "$file"
sed -e 's/-CPUaddr... (10 Replies)
HI,
I have a file serverlist in that all host names are placed.
i have written a small script
#./testping
#! /bin/bash
for i in `cat serverlist`
do
ping $i >> output.txt
done
so now it creates a file output.txt till here fine..
now each time i run this script the output file... (4 Replies)
I have ssh password less auth enable & script does the job well as well
#/bin/bash
for i in `cat ip`
do
scp /etc/resolv.conf root@$ip
done
But I need to take backup of the file i will overwrite .. is there any simple way ?
Kindly respond (5 Replies)
Hy over there,
Lets make it simple :)
Using a bash script, how to grep only the ip address and the mac address and put them in a file:.
for example from the dhcp.conf file we got such things:
The script will end up with two columns IP's and MAC adresses as it is showed below:
... (9 Replies)
Discussion started by: hermouche
9 Replies
LEARN ABOUT NETBSD
screenblank
SCREENBLANK(1) BSD General Commands Manual SCREENBLANK(1)NAME
screenblank -- screen saver daemon for wscons and FBIO machines
SYNOPSIS
screenblank [-k | -m] [-d inactivity-timeout] [-e wakeup-delay] [-f framebuffer] [-i input-device]
screenblank {-b | -u}
DESCRIPTION
screenblank disables the framebuffer if the keyboard and mouse are idle for a period of time, and re-enables the framebuffer when keyboard or
mouse activity resumes.
When killed with a SIGINT, SIGHUP, or SIGTERM, screenblank will re-enable the framebuffer. The pid can be found in the file
/var/run/screenblank.pid.
The options are as follows:
-b Overriding the other options, simply try (once) to blank the framebuffer, then exit.
-d inactivity-timeout
Wait the number of seconds specified by inactivity-timeout, expressed in the format ``xxx.xxx'', before disabling the framebuffer due
to inactivity. The default is 600 seconds (10 minutes).
-e wakeup-delay
Wait the number of seconds specified by wakeup-delay, expressed in the format ``xxx.xxx'', before re-enabling the framebuffer once
activity resumes. The default is .25 seconds.
-f framebuffer
Use the framebuffer device framebuffer instead of the default /dev/fb.
-i input-device
Add input-device to the list of devices to monitor for activity.
-k Do not check the keyboard for activity.
-m Do not check the mouse for activity.
-u Overriding the other options, simply try (once) to unblank the framebuffer, then exit.
Note that the -k and -m flags are mutually exclusive.
FILES
/dev/kbd The keyboard device.
/dev/mouse The mouse device.
/dev/console The console device.
/dev/fb The default framebuffer.
/dev/wskbd The keyboard for wscons machines.
/dev/wsmouse The mouse device for wscons machines.
/dev/ttyE0 The console device for wscons machines.
/var/run/screenblank.pid File containing the pid of screenblank.
BSD September 23, 2006 BSD