01-01-2012
Quote:
Originally Posted by
gangiaemi
hi all,
this is my first post here...i hope that this is the correct section to write my question.
I have a distro linux without gui, only text mode.
So, it's possible run automatically a command or a program as "top" or "ping" and get the result on the main shell , after the boot and after username and password input ?
I don't want run the command or the software as a service (init.d/.....).
Thanks to all.
Regards
Emiliano
What's your system?
Certainly it's possible. I've made login systems that ran top, another that generated openvpn keys, and another that played a 'net radio station on login. Among other things.
How depends on your system, which you haven't stated yet. What is it?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i write a script for displaying a xmessage.But i want it to run automatically for every one hour.can any one help me. (2 Replies)
Discussion started by: lakshmananindia
2 Replies
2. UNIX for Dummies Questions & Answers
Figured out the first half but am still having a little trouble shooting problem with the Initialization Files. I am working in bash on a remote server.
When I log on I am seeing the correct prompt but right before that I am also seeing this
the id -u integer expression expected is what... (2 Replies)
Discussion started by: moonunit
2 Replies
3. Ubuntu
Hi masters,
I am still learning trades in kernel. I am trying to learn the basic of daemon programming. Can any one tell me how can I start a daemon automatically during boot up. I will be greatfull if anyone post some example code to the above task.
Also what are... (3 Replies)
Discussion started by: iamjayanth
3 Replies
4. Solaris
Hi,
Can anyone please let me know if any installed software on solaris can be accessed with GUI on CDE. I just installed putty from sunfreeware.com and try accessing it but no way to access it's GUI.
Thanks,
Deepak (1 Reply)
Discussion started by: naw_deepak
1 Replies
5. Shell Programming and Scripting
Hello.
The last days I extended an open-source C++ library by some faster functions. This library provides a lot of short test programs which guarantee that the library works exactly.
The compilation of each test works in a Makefile automatically.
What I need is a shell script which... (5 Replies)
Discussion started by: max3000
5 Replies
6. Linux
Okay I'am not using ArchLinux but one of girlfreinds needs it (or it recommend by her work) and she need a desktop - so how do we do so the computer boot up with GUI instead of console ? - I'am a newbie to Arch so I have no idea, is it like SlackWare where you change the inittab file or is it some... (10 Replies)
Discussion started by: looop
10 Replies
7. Shell Programming and Scripting
Hello Experts,
In my current job I need to upgrade a web GUI to execute Unix commands in a server....I am completely new to programming--So can anyone here help me out with initial steps...
Please notice that statement completely new to programming means-I never did it, SO I might keep on coming... (1 Reply)
Discussion started by: mhadi
1 Replies
8. Linux
Hi..
I just brought a CD writer.
It has nero for windows bundled with it.
I found nero very easy to use as well as usefull..
I then see that wht we have in linux..
I found that in my Redhat 9 i have two CD writers software but both are no where nare nero...
So is there any GUI based cd... (5 Replies)
Discussion started by: billcrosby
5 Replies
9. UNIX for Dummies Questions & Answers
Very new to this.....
What I would like to do:
Create a simple GUI/Web portal with 3 buttons and 1 text field
The three buttons need to take the input into the text field and use that as the variable to execute scripts located on a server
Problem:
How can i get the buttons on the... (3 Replies)
Discussion started by: poops
3 Replies
LEARN ABOUT DEBIAN
linux::distribution
Linux::Distribution(3pm) User Contributed Perl Documentation Linux::Distribution(3pm)
NAME
Linux::Distribution - Perl extension to detect on which Linux distribution we are running.
SYNOPSIS
use Linux::Distribution qw(distribution_name distribution_version);
if(my $distro = distribution_name) {
my $version = distribution_version();
print "you are running $distro, version $version
";
} else {
print "distribution unknown
";
}
Or else do it OO:
use Linux::Distribution qw(distribution_name distribution_version);
my $linux = Linux::Distribution->new;
if(my $distro = $linux->distribution_name()) {
my $version = $linux->distribution_version();
print "you are running $distro, version $version
";
} else {
print "distribution unknown
";
}
DESCRIPTION
This is a simple module that tries to guess on what linux distribution we are running by looking for release's files in /etc. It now looks
for 'lsb-release' first as that should be the most correct and adds ubuntu support. Secondly, it will look for the distro specific files.
It currently recognizes slackware, debian, suse, fedora, redhat, turbolinux, yellowdog, knoppix, mandrake, conectiva, immunix, tinysofa,
va-linux, trustix, adamantix, yoper, arch-linux, libranet, gentoo, ubuntu, scientific, oracle enterprise linux and redflag.
It has function to get the version for debian, suse, fedora, redhat, gentoo, slackware, scientific, oracle enterprise linux, redflag and
ubuntu(lsb). People running unsupported distro's are greatly encouraged to submit patches :-)
EXPORT
None by default.
TODO
Add the capability of recognize the version of the distribution for all recognized distributions.
AUTHORS
Alexandr Ciornii <alexchorny@gmail.com>, <http://chorny.net> Alberto Re, <alberto@accidia.net> Judith Lebzelter, <judith@osdl.org>
COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2012-03-18 Linux::Distribution(3pm)