Sponsored Content
Top Forums UNIX for Dummies Questions & Answers startX windows application during boot.....putty connection takes the windows Post 302538453 by venkat_330 on Wednesday 13th of July 2011 03:51:53 AM
Old 07-13-2011
startX during boot.....want to disable putty connection takes the windows

Dear all

i am new to linux/debian

i run my application on the computer...during startup in bashrc i wrk wid dis script to invoke startx..i do this above command and it works perfectly...
Code:
if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then
  startx -- -br 1>/dev/null
  exit 0
fi

i use winscp for file transfer and putty for remote terminal connections...so when i reboot my host computer during reboot process if i happen to connect putty remotely my startx is redirected to my remote computer putty screen,,,,which i does not want...

i want my startx to run only in my host computer...

please help

Reagrds
Venkat.s

Last edited by Franklin52; 07-13-2011 at 08:08 AM.. Reason: Please use code tags for code and data samples, thank you
 

5 More Discussions You Might Find Interesting

1. Red Hat

How to take printout of linux file from windows xp using putty?

Friends, I have installed Putty in my windows xp pc. I am connecting the RHEL AS 3 server using putty from my windows xp. My printer is connected to my windows xp. Now, i want to print text.txt of RHEL AS 3.0 in my windows xp printer through putty. For Example: my pc ip is 117.23.2.55... (3 Replies)
Discussion started by: sathyguy
3 Replies

2. Shell Programming and Scripting

Putty Input thru Windows

Hi anyone knows how to pass values to putty command prompt from MS windows. since i am have a shell script to get input of several lines. i dont want to type it rather than input values from some windows based application is there any way thanks in advance. (2 Replies)
Discussion started by: JACKDSOUZA
2 Replies

3. Shell Programming and Scripting

Renaming putty windows with a shell script

i frequently have to open multiple putty windows to ssh into a unix server running HP-UX 11.23. Since i use some of the windows for dedicated processes i would like to rename them (the caption displayed in the titlebar) to something more convenient than the standard <Host>.<Server>.com While... (4 Replies)
Discussion started by: orno
4 Replies

4. UNIX for Advanced & Expert Users

Use putty problems in windows

Hello all, I have encountered a strange question. I installed a Ubuntu 8.10 in the VMware in the XP, and use putty to connect to ubuntu. Everything is fun except I can't use the wget in putty, neither does command "sudo apt-get ***". But they are OK in the VM. Can someone help me out? Thank... (2 Replies)
Discussion started by: tpltp
2 Replies

5. Windows & DOS: Issues & Discussions

Connecting to UNIX from Windows without using putty

Hi Is there any command which we can try connecting unix from windows without using any third party tool. Thanks in advance KVB (9 Replies)
Discussion started by: bikky6
9 Replies
Tk_SetAppName(3)					       Tk Library Procedures						  Tk_SetAppName(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tk_SetAppName - Set the name of an application for 'send' commands SYNOPSIS
#include <tk.h> const char * Tk_SetAppName(tkwin, name) ARGUMENTS
Tk_Window tkwin (in) Token for window in application. Used only to select a particular application. const char *name (in) Name under which to register the application. _________________________________________________________________ DESCRIPTION
Tk_SetAppName associates a name with a given application and records that association on the display containing with the application's main window. After this procedure has been invoked, other applications on the display will be able to use the send command to invoke operations in the application. If name is already in use by some other application on the display, then a new name will be generated by appending " #2" to name; if this name is also in use, the number will be incremented until an unused name is found. The return value from the proce- dure is a pointer to the name actually used. If the application already has a name when Tk_SetAppName is called, then the new name replaces the old name. Tk_SetAppName also adds a send command to the application's interpreter, which can be used to send commands from this application to others on any of the displays where the application has windows. The application's name registration persists until the interpreter is deleted or the send command is deleted from interp, at which point the name is automatically unregistered and the application becomes inaccessible via send. The application can be made accessible again by calling Tk_SetAppName. Tk_SetAppName is called automatically by Tk_Init, so applications do not normally need to call it explicitly. The command tk appname provides Tcl-level access to the functionality of Tk_SetAppName. KEYWORDS
application, name, register, send command Tk 4.0 Tk_SetAppName(3)
All times are GMT -4. The time now is 10:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy