screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calendar


From: gesmith
Subject: Re: calendar
Date: Wed, 21 Jul 2004 13:24:17 -0500
User-agent: Every email client sucks, this one just sucks less.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Kai

On Wed, 21 Jul 2004, Kai Hendry wrote:

> I want to run calendar when I start a new screen. I don't want to start
> it if there already a screen running on the system.
> 
> Hmm, it's not that easy:
> scrooge-15:500$ screen calendar
> [screen is terminating]
> 
> 
> I know I should typically do this in .bashrc, but I do not want it to
> run everytime I start a shell.
> 
> bsdmainutils: /usr/bin/calendar
> 
> I launch screen like so:
> http://svn.natalian.org/home/.xsession
> 
> 
> Thanks,
> 
> 
> _______________________________________________
> screen-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/screen-users

You could make a function in your bashrc instead.

Example:
cal_screen()
{
    ps u | grep calendar | grep -v grep>/dev/null
    if  [ "$?" = 0 ]
    then
        screen -dmS cal calendar
    fi
} 

- -- 
Politics: Poli (many) - tics (blood sucking parasites)

ICQ# 324133576 
http://www.gsdesign.biz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA/rTR0820Han9fTERAqVOAKCWYq9+oZetRqFfGufy57bZzf344ACfesiK
kCtBmCp1DL9kNitXMM9J2Us=
=aPPS
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]