Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 00:27

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Process status in echo

Discussion on Process status in echo within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1

 
elite*gold: 1
Join Date: Apr 2014
Posts: 586
Received Thanks: 144
Process status in echo

Hello, i'll write some scripts for the administration of my server. so now i need help with one function. how i can output the status of a process/deamon in an echo command? Like: The Teamspeak2 Server: $STATUSOUTPUT

here is the code i've tried but it don't work...

Code:
cvs()
{
ts2s='/x/ts2 status'
ts3s='/x/ts3 status'

echo
echo "Status of Teamspeak 2 Server: $ts2s"
echo
echo "Status of Teamspeak 3 Server: $ts3s"
echo
}
at the moment this is the output of the function:

~> Thalion ッ <~ is offline  
Old 10/10/2014, 21:57   #2
 
Reav0r's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 150
Received Thanks: 32
What do you mean by status? Do you want to see if the process is running and how much ram it's using or what kind of information do you want to know?
I don't have any teamspeak servers running, so I'm not sure what kind of information you need.
Reav0r is offline  
Old 10/10/2014, 22:02   #3

 
elite*gold: 1
Join Date: Apr 2014
Posts: 586
Received Thanks: 144
i'll use this on an better way:

Code:
ts2s()
{
/x/ts2 status
}

ts3s()
{
/x/ts3 status
}

cvs()
{
echo "Status of Teamspeak 2 Server: $(ts2s)"
echo "Status of Teamspeak 3 Server: $(ts3s)"
}


without an extra function for ts2s and ts3s
~> Thalion ッ <~ is offline  
Reply


Similar Threads Similar Threads
PHP: Frage zu echo und else
05/09/2014 - Web Development - 7 Replies
Hallo zusammen, ich bastel derzeit an einer Website und habe zwei Probleme. Zum einen habe ich ein Login und Register Script gebastelt, wenn der Login nun fehlschlägt, weil beispielsweise das Passwort falsch ist wirft der mir den Echo auf einer neuen Seite aus, ich würde diesen aber gerne im selben Fenster haben. Hier wäre mein Loginscript: <?php // Allgemeine Einstellungen define('access', true); $crapVarr = 'F@#&$^*FG^&F^#$&#&D$%%#$D%&$^ %#&D#%&F$#';...
Echo Online
12/12/2013 - Fiesta Online - 43 Replies
moinsen und sry falls schon iwo was erwähnt wurde, aber wasn mit Echo los? Hab i iwas verpasst?:confused:
Mit Process Explorer /Process Hacker Hs umgehen
05/22/2010 - General Gaming Discussion - 1 Replies
Ich habe hier im Forum gelesen, das man mit Process Explorer bzw. Process Hacker das HS umgehen kann. Leider ist mir irgendwie schleierhaft wie das gehen soll. Vllt erbarmt sich jemand und erklärt es (:, da man den sogenannten Bypasser nur noch las Premium Dings Da bei Upload.to runterladen kann :rolleyes:
if... echo...
04/05/2010 - General Coding - 12 Replies
Ich bastel grade aus reinem interrese an einem config maker fuer ein spiel ist soweit fertig nur ein problem habe ich noch <select name="choosekate"> <option value="5" selected="selected">5 Haupkategorien</option> <option value="4">4 Haupkategorien</option> <option value="3">3 Haupkategorien</option> <option value="2">2 Haupkategorien</option> <option value="1">1 Haupkategorie</option> </select>
C# how to pause a process/freeze process
12/08/2008 - CO2 Programming - 2 Replies
ya so i was semi bored and after little bit of looking around i didnt find to many examples of how to do this so attached is a demo project to show you how. basically it comes down to calling ResumeThread() and SuspendThread() (API functions) on all the threads of a process...simple enough http://img388.imageshack.us/img388/9762/exampleil 6.png please note when you enter the process name there's no ".exe" to the end Warning: this isn't idiot proof . .



All times are GMT +1. The time now is 00:27.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.