Sponsored Content
Operating Systems Linux Ubuntu execute command when Ubuntu boots up ? Post 302551443 by eawedat on Tuesday 30th of August 2011 11:04:36 AM
Old 08-30-2011
Debian execute command when Ubuntu boots up ?

hey all,,
I want to add comments when Ubuntu starts up..
now I know that there is a directory called /etc/init.d
which I can place my scripts there to run them at Ubuntu's startup..

but I prefer if there would be a file which runs when Ubuntu starts!!
because it is only one command. not worth to make a new file..


I tried .profile ,, but does not work..
regarding .bash_rc ,,, it runs commands each time I open the terminal.
and I want to run a command once!!

any suggestions?

thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

program that boots at OS startup

Hi All: I wanted to know if i can write a program in UNIX, a program that does not run under a particular user login, but starts up at BOOT time. Are there any online material that i could look into to do that. Appreciate the help. Thanks, Preetham (6 Replies)
Discussion started by: preetham
6 Replies

2. Solaris

NIS Boots Me Out

I have a NIS environment using all Solaris 9 systems. After all kinds of trobleshooting i am to the point where I can login to a NIS account from a client system. However, the logon process starts and the splash screen is displayed and then the desk top is displayed but then it flashes and kicks... (1 Reply)
Discussion started by: meyersp
1 Replies

3. UNIX for Advanced & Expert Users

AIX 433 boots into command line.

Hi All, I have an AIX 433 workstation that keeps booting into command mode. It was booting into CDE for a long time now. Suddenly now it boots into command line mode. No errors while booting up. Do not see anything in errpt. Don' t know where to start from.. Can any one please help me..thanks. ... (2 Replies)
Discussion started by: navinxavier
2 Replies

4. UNIX for Dummies Questions & Answers

Plz Help : How to use write command to execute command on some other terminal

Hi Group , I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages. - i m writing >write user-id ! ls o ctrl-d inspite of executing the command ls,other terminal shows ! ls. Thnx in advance. (2 Replies)
Discussion started by: Aashish
2 Replies

5. OS X (Apple)

How to execute a command when system boots?

Hi all, I want to execute a command when system boots. I tried to edit /etc/rc.common and add my command at the end of rc.common, but it does not work! Anyone knows how to do it? Thanks :) (6 Replies)
Discussion started by: andrewust
6 Replies

6. Shell Programming and Scripting

When i am trying to execute export command within a shell script it is saying command not found.

I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found" My code is as follows: -------------------------- #!/bin/sh user="test" DIR="/bldtmp/"$user VIEW="test.view1" echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies

7. Shell Programming and Scripting

How to execute a command on each line of output from another command?

Hello :) new to bash not to programming. I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward. find {target_root} -group wrong_group gets me a newline... (4 Replies)
Discussion started by: naftali
4 Replies

8. UNIX for Beginners Questions & Answers

Execute Ubuntu 14.04 cronjob as non-root

I have created a cronjob that successfully executes and among other thing runs aria2c to download several files and save them to a folder. However, since it executes as sudo, the downloaded folder is saved with those permissions. Is there a way to execute the cronjob so that the downloaded folder... (4 Replies)
Discussion started by: cmccabe
4 Replies

9. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies

10. UNIX for Beginners Questions & Answers

Another one line command where I'd like to determine if Ubuntu or Red Hat when running command

Hello Forum, I'm making very good progress on my report thanks to the very helpful people on this forum. I've been able to successfully create my report for my Red Hat servers. But I do have a few ubuntu servers in the mix and I'd like to capture some data from them when an ssh connection is... (8 Replies)
Discussion started by: greavette
8 Replies
byobu-launcher-install(1)					       byobu						 byobu-launcher-install(1)

NAME
byobu-launcher-install - Byobu Launcher installation utility SYNOPSIS
byobu-launcher-install [-n|--no-logout] DESCRIPTION
byobu-launcher-install(1) is a simple utilty that will add a line to your $HOME/.profile file which launches byobu(1) any time you login through ssh(1) or on a console(4). By default, when users detach from the byobu(1) session they will also logout. Users can change this behavior by adding the [-n|--no-logout] option when they run byobu-launcher-install(1). You can disable this behavior entirely at any time with the byobu-launcher-uninstall(1) utility. SEE ALSO
screen(1), byobu(1), ssh(1), console(4), byobu-launcher-uninstall(1) http://launchpad.net/byobu AUTHOR
This manpage and the utility were written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). Permis- sion is granted to copy, distribute and/or modify this document and the utility under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL on Debian/Ubuntu systems, or in /usr/share/doc/fedora-release-*/GPL on Fedora systems, or on the web at http://www.gnu.org/licenses/gpl.txt. byobu 3 Jan 2010 byobu-launcher-install(1)
All times are GMT -4. The time now is 02:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy