07-16-2006
Can you set up Sitescope to automatically run a script whenever an error event occurs?
If so, you can use cygwin - set up ssh keys, then have a script that calls shutdown -r now via ssh. Instead of setting up ssh keys for "root", implement sudo on your target Linux box, and have the ssh command call "sudo shutdown -r now" as a "regular" user.
Cheers
ZB
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
If I want to access unix box via VPN tunnel,from windows box.
What sould I configure on the windows client PC, and what should I enable on the Unix Server box ?
I am using Solaris V10 intel platform, and I am using windows XP, and 2003 for client (0 Replies)
Discussion started by: zillah
0 Replies
2. Shell Programming and Scripting
Hi All,
I need to know if it is possible ftping files from unix box to windows box .
if yes , how ?. Is there any pre-requisits.
Please tell me the steps, this is very urgent.
Thnx
Aru (8 Replies)
Discussion started by: aarora_98
8 Replies
3. UNIX for Dummies Questions & Answers
I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked.
Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies
4. Shell Programming and Scripting
Hi All,
I need a little help .I want to transfer a file from unix box to a windows box,but the problem i'm facing is that in windows box FTP is not enabled and currently it is nearly impssible to change setting on windows box,i can not use the ftp method ,in my shell script to transfer the file.... (2 Replies)
Discussion started by: Preet
2 Replies
5. UNIX for Dummies Questions & Answers
scp file="myfile.txt" todir="user@somehost:(M:drive:/somepath/)"/
Not sure I need it to go to a specific drive on the windows box (1 Reply)
Discussion started by: xgringo
1 Replies
6. Shell Programming and Scripting
Hello all !
I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies
7. Windows & DOS: Issues & Discussions
Hi all pro
I had a script from windows to put diff file from the linux box
but i had stuck on it ,how to play around with the %1
@echo off
"C:\putty\psftp" linux@1.1.1.1 -pw password -bc -b getfile.scr
--getfile.scr
lcd "C:\DATA"
cd logs/
mget %1
Thanks
jiajin (0 Replies)
Discussion started by: lijiajin
0 Replies
8. Red Hat
Hi
I have a linux box and need to access from windows graphically
# uname -a
Linux pc-l416116 2.6.18-155.el5 #1 SMP Fri Jun 19 17:06:47 EDT 2009 i686 i686 i386 GNU/Linux
What components do I need to install on Linux and windows to do that?
TIA (6 Replies)
Discussion started by: magnus29
6 Replies
9. Shell Programming and Scripting
Team,
Presently I have a script, which i have set up cron on one of my Jump-boxes,and gives me the output on every hourly basis,fetching the data from the remote machine.Basically it gives me the list of all active users logged and its count once we execute the script.Here the count is... (6 Replies)
Discussion started by: whizkidash
6 Replies
10. How to Post in the The UNIX and Linux Forums
Hello my dear friends,
Two file are auto generated from mon - fri at different directories on same windows box.Every day i have to copy the file, rename it (specific name)and ftp it to linux box specified directory.
is it possible to automate this process,If yes this has to be done from windows... (1 Reply)
Discussion started by: umesh yadav
1 Replies
LEARN ABOUT ULTRIX
dwtlistboxsetpos
DwtListBoxSetPos(3Dwt) DwtListBoxSetPos(3Dwt)
Name
DwtListBoxSetPos - Makes a specified position (item number in the list) the top visible position in a list box, or as close to the top as
possible.
Syntax
void DwtListBoxSetPos(widget, position)
Widget widget;
int position;
Arguments
widget Specifies the ID of the list box widget whose specified item number in the list you want displayed in the top position.
position Specifies the item number in the list displayed in the top position in the list box.
Description
The DwtListBoxSetPos function makes the specified position (the item number in the list) the top visible position in a list box. The func-
tion determines which item in the list box is displayed at the top of the list box, the choice of which is limited by the DwtNitemsCount
and DwtNvisibleItemsCount attributes to the list box widget. When DwtNvisibleItemsCount is greater than 1 and less than DwtNitemsCount,
the list box widget fills the list box with the maximum visible items regardless of the position value.
For example, if DwtNitemsCount is 10 and DwtNvisibleItemsCount is 5, you cannot make item 8 be displayed at the top of the list box.
Instead, items 6 through 10 would be displayed. Setting position to 4 would make items 4 through 8 be displayed. If DwtNvisibleItemsCount
is 1, you can make any item in the list be displayed at the top of the list box.
See Also
Guide to the XUI Toolkit: C Language Binding
Guide to the XUI Toolkit Intrinsics: C Language Binding
DwtListBoxSetPos(3Dwt)