LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2009, 08:37 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
Fortune and konsole (kde question)


Hey i was wondering if it is possible to execute fortune command when i start a new konsole session. I need some help cause i am new to the kde environment
 
Old 04-19-2009, 09:18 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
In Slackware it's done with a script: /etc/profile.d/bsd-games-login-fortune.sh
Code:
#!/bin/sh
# Print a fortune cookie for interactive shells:
if [[ $- = *i* ]]; then
  echo
  fortune fortunes fortunes2 linuxcookie
  echo
fi
or this in ~/.bashrc, from:
http://tldp.org/LDP/abs/html/sample-bashrc.html
Code:
if [ -x /usr/games/fortune ]; then
    /usr/games/fortune -s
fi

Last edited by brianL; 04-19-2009 at 09:53 AM.
 
Old 04-22-2009, 09:35 AM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
thx it worked! (suse 11.1)
 
Old 04-22-2009, 09:47 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
Good. Which one did you use?
 
Old 04-22-2009, 11:12 AM   #5
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
2nd one
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortune in Konsole batorma Linux - Newbie 5 10-31-2005 06:31 PM
fortune in konsole? greythorne Mandriva 1 12-22-2004 04:51 AM
KDE/KDM and fortune??? dbc001 Linux - Software 0 03-29-2004 01:14 AM
fortune database of quotes?(and a question for the moderators too) rmanocha Linux - Software 1 01-24-2004 06:16 PM
KDE Konsole Krappy Linux - Software 5 10-14-2002 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration