Good Morning
I am Trying to Create a Script that @ startup sets the DISPLAY Variable
So i can Use Plink to Start X11 Applications
(*\plink.exe **** sh display.sh; eclipse)
Tools : Xming and Putty/Plink
SSH-Connection to LinuxServer
I startet with sh and that didnt work so after sh now tcsh
Both Do Their Jobs : Meaning both set the right IPs BUT
As Soon as i leave the Script and Start a Programm the change is "lost"
More explisit : (as above) sh display.sh : sets the right IP but
script ends : and eclise starts : DISPLAY is emtpy again
@ same for tcsh
the
SH : export function gives me a
As Well as the SetEnv
TCSH : no error, but after Script there is no Display Found
Doing the Procedure "by hand" works just fine @ all shells possible
and All Programms : So it cannot be the X11 Configuration
It's not really clear to me but try to start the script in the current environtment.
Make your script executable (chmod 755) and run the script as follow:
That is a Problem i tried to leave out
I tried everything i knew (basic knowledge : chmod +x , or 755, file is sown to be "execuable" *) to run the script "normal" but whatever i do i always get
so i fell back @ "sh script" and "tcsh script"
So The logical Explanation is :
I dont know something about scripts
the last 4 Lines :
from *empty*
... meaning the display i set (1234) was not found
to *correct ip*
... meaning setenv did well and echo shows correct ip
echo
... meaning display back to fake ip ....
Hi all,
I am looking for help with a script for displaying the space available from a df - h command for / (root).
The problem is: If it is below 700 MB I have jobs that are failing... Is there a way I can do a calculation? If it above 700 MB it is good, if it is below 700 MB it will fail.... (5 Replies)
I have a script to do a couple simple but repetitive commands on files that are provided to us. One of the things is to get rid of the line feeds. This is the section that is causing problems, i even cut this section into its own file to make sure nothing else was affecting it.
#!/usr/bin/bash... (4 Replies)
hi Friends,
I am writing a shell script to extract data from sar logs for my daily analysis.
I have this in sar logs
HP-UX dhpcdbe1 B.11.31 U ia64 05/09/12
01:22:42 device %busy avque r+w/s blks/s avwait avserv
01:27:59 disk30 8.79 13.72 26 427 36.47 ... (3 Replies)
Hi,
I am writing a script which processes large number of files in a directory. I wanto display a counter which increment after processing each file. I am processing each file in a for loop. If I echo a variable with its value increasing with each file, I will get around 5000 lines as output.... (10 Replies)
Can anyone point me to the right direction on how to write a simple script that will display a message on any terminal when implemented?
Basically I need it so the script runs at a certain time, say April 30, 2010 and that the message will be displayed to me no matter which terminal I am logged... (2 Replies)
I have script which prints following o/p
ServerName = server1
Proc0 :Temperature 61
Proc1 :Temperature 60
CPU 99.4% idle,
Now since i have to feed this data to another java program i want the out put as follows
Name Proc0 Temp Proc1 Temp CPU... (5 Replies)
hey folks,
i am stuc in this problem. You all might help me out.
I want to write a BASH script to display time every 15 seconds using %r field descriptor. And want to clear the window each time before displaying time using clear command. Please help me out (3 Replies)
Hi i've written a script which reads last two line of the log file from N number of servers and send the mail by redirecting to a particular log file.
And the two lines is displayed below.
Oracle Q03 Begin Hot BACKUP Time: 07/23/08 18:35:46
Oracle Q03 End Hot BACKUP Time: 07/24/08 14:18:15... (1 Reply)
I remember learning that there is a way to make a shell script display the script itself to standard output while the script is being executed but I can't find how to do that. Any pointers? (2 Replies)