IRSSI and Terminal Window [SOLVED]

Hello,
I recently installed Arch with Fluxbox in order to try it and I'm wondering if there is a way to start a terminal window then automatically have it run a command.
For example, I'm currently working on editing my fluxbox menu and want to be able to open irssi automatically from the menu rather than having to open a terminal window to start it.  At first I tried just setting the command as "irssi" but this doesn't do anything.  Is there some way I can open a terminal window then have it execute irssi automatically?
Thanks in advance!
Last edited by celestialorb (2009-07-31 03:51:44)

Yes you can do this, but the method is semi-dependent upon which terminal you're using. Urxvt looks like this:
urxvt -e sh -c irssi
where sh is the shell you want to launch the command under.
EDIT: Beaten to the punch. You can use smurnjiff's method, if it works for you - but I've found that unless you specify a shell, urxvt fails to keep a window around long enough to do anything with the command. Works fine with one shot deals though - such as 'mpc prev' or similar.
Last edited by synorgy (2009-07-31 03:44:45)

Similar Messages

  • DVD no more and Terminal window woes?

    Two issues here:
    #1
    Today I updated my OSX 10.3.9 with the very latest updates. (I bought iLife '05 and the instructions recommended this). After this update I can no longer mount any DVD discs [data, (not even iLife '05 install) movie's, etc.] DVD's do not appear on the desktop, the Finder side bar, or in the Disk Utility window. CD's work fine though. For the last couple month's, (actually since moving up to 10.3.9) movie DVD's have been problematic ... frequently needing force quits of DVD Player, restarting with the DVD inserted to force it to mount, etc. Today's update has killed it altogether.
    #2
    After doing everything imaginable (repair permissions, dump caches, zap pram, etc.), I went to the terminal to update prebinding as a last ditch effort to find a solution, but now the terminal window apppears as only the very top left corner of the window with just a close button and enough room to double click it to minimize it into the dock. I cannot expand the window to see anything. I've again repaired permissions, dumped cache files, run MacJanitor, zapped the pram, you name it.
    Summary:
    Now I've lost DVD capability (and hence cannot boot from my old 10.3.3 install disc because it's on DVD) and my termial is non accessible.
    The plea:
    "Help, I've updated ... and I can't get up!"
    Help would be so appreciated!
    G4 MDD Dual 1.25ghz   Mac OS X (10.3.9)  

    Thanks for the help!
    The font issue sounds likely since I also recently went through all of my fonts with Font Doctor and reorganized everything with FontAgent Pro. I thought I had left system fonts untouched but maybe something happened inadvertantly. I'll check it out.
    Regarding the DVD, I tried, as you suggested, restarting w/ option key and the OSX 10.3.3 DVD did not show up. I'm wondering though, CD's (both data and audio) mount just fine. It seems if there were truly a hardware issue, CD's would not mount either. Thoughts on this? (I'd just hate to buy a new DVD drive if it's is not the real problem.)
    Thanks again and happy New Year!

  • [SOLVED] keeping terminal window open for scrot keyboard shortcut

    Hey,
    Im trying to bind a keyboard shortcut to scrot with the -s command (for selecting window). Normal scrot command works fine straight away, but with the -s command a terminal window needs to be open that waits for the selection. i have created a file called lscrot with the following code:
    1 #!/bin/bash
    /usr/bin/terminal --working-directory=$HOME/dump/ --geometry 0x0-0-0 -e "/usr/bin/scrot -s"
    i have put the file in /usr/bin folder with 755 permissions.
    if i right click the file and choose "execute", the new terminal window will stay open and i can select an area to take a screenshot of, but when i bind it to a shortcut key (using xfce) the new terminal window will close immediately rendering the shortcut useless.
    how does one fix this?
    thanks
    Last edited by iOfWhy (2012-06-10 13:41:55)

    hmmm, ok. binding keys to /usr/bin/scrot works fine, but /usr/bin/scrot -s does not. dont really know where to begin searching for a fix...
    EDIT: im assuming there is something elementary i am missing. after further testing, launching for example scrot ~/dump/test.png from console works fine, but not when i bind it to a keyboard shortcut. however, scrot test.png works to bind. does anyone know anything more about XFCe and binding keyboard shortcuts?
    EDIT2: ok so im honing in a little bit, i realised that the first times i use the keyboard shortcut it works. forcing the terminal window to stay open after command has been executed i see following error:
    giblib error: couldn't grab keyboard:Resource temporarily unavailable
    Searching the net i found old bug that was closed without (seemingly) being solved.
    https://groups.google.com/group/linux.d … 2056017d9a
    Any ideas?
    EDIT3: ok so found a solution, "sleep". Adding sleep 0.1 to the top of the screenshot script seemed to help. seems you need to give sometime to release the keyboard for scrot to use. would still be great if anyone knew how to get it to work by using a direct command in the keyboard shortcut bindings. ie binding in straight to "scrot -s". using Alt+F2 then typing in scrot -s works fine, so i really dont see why i cant bind a keyboard command straight to that.
    NOTE: how do i see xsession errors? I find no .xsession-errors file in my home directory. been searching for months.
    Last edited by iOfWhy (2012-06-10 13:33:56)

  • If I have a program that runs in windows under the command prompt and on Mac in the Terminal window, can it be run in iOS

    I have a program that is ran using the command line in windows and the terminal window on Mac or LInux.  Is it possible to create an app for the iPad that could run this program.  This program does require admin rights.

    No.

  • (SOLVED) Closing a terminal window

    When I am through using the terminal window, I hit the X at the top right corner but get this message: There is still a process running in this terminal. Closing the terminal will kill it.
    Why do I get this? I think I have nothing running. is there a bug?
    Last edited by mcduling (2011-12-19 22:23:54)

    It is complaining because you are still running su. That's a fair warning, not a bug.
    If you don't like it, use sudo instead. It's safer anyway than leaving a terminal sitting around in su-mode for arbitrary lengths of time.
    Edit: btw, if you have run su to gain root access, and you want to close the terminal, you can get out of su by typing "exit". Then you should be able to close the terminal.
    But really, don't use su. That's just asking for trouble. Sudo is your friend.
    Last edited by /dev/zero (2011-12-19 09:59:43)

  • Redirect Printer is not working in windows 2008 R2 Server( Server Running as AD and Terminal Service(both role in single server))

    Dear Team
    i need solution from Microsoft for the issue;
    My infrastructure
    - Windows Server 2008 R2 (Role - AD and Terminal Service)- Updated
    - Client Machine running with windows 7 pro (Updated)
    - Client Using RDP Client to connect Windows 2008 Terminal Session
    - All are working fine, but Redirect Printing is not working (Through Windows 7 Pro) ... (HP Laser Jet 1020 plus - attached in Client PC)
    - it is working fine from Windows XP
    - i was done All terminal setting in both end, also try RDP Login with Administrator User, but issue is not resolve;
    What Microsoft can say about the issue;
    Thanks & Regards,
    VIMAL PRAJAPATI | 09824111686

    Have you checked the Print Service log in event viewer?
    Here's How.
    I have the Microsoft XPS driver on my clients, so I use that fact to my advantage below.
    Click Start Button/Administrative Tools/Remote Desktop Services/Remote Desktop Services Manager on the RDSH server
    Click the Sessions tab.  PC’s are listed Under Client Name by their computer name.  Take Note of the corresponding
    ID.  We will use this to locate the Printer information in the Event Log.  
    In the Event Log open Application and Services Logs/Microsoft/Windows/Print Service/Admin/ and Find the Event ID 823 entry that has the corresponding ID from the sessions tab you previously noted.  
    This Event Log Entry is created at Logon and you can only get the session ID when they are logged in.
    This tells you what client printer was mapped for the client.  The name that appears is the name of the Printer that was set on the client when the printer was installed.
    See if you see any errors here.
    If you see Event Id 823 with the following message “The default printer was changed to Microsoft XPS Document Writer,winspool,Ne00:. See the event user data for context information.”  Twice in a row with no other messages in between, and the first occurs
    at the time the user logged in, then their printer was not properly redirected.
    You see the Microsoft XPS driver mapped for each session prior to Easy Print redirecting the client machine’s Default Printer.
    Since your printer is the HP 1020 I would bet the driver on the client does not work with Easyprint.  I would try the  the HP Universal Print Driver or the driver for a printer that is very close, like the HP 1018.
    Thanks,
    Jeremy

  • Cant install software from disk. Terminal window opens with a logon and bash message?

    I cannot install software from disk & in some cases download.
    If any software disk is inserted the terminal window appears.
    The Disk has to be clicked to open the contents but install files or package files show as a blank doc and not the usual yellow package icon.
    All that shows is a log on message in the terminal window, but nothing about install.
    I thought Drive issues but the drive plays audio and DVD perfect
    I cannot install:-
    Office for mac updates
    Live Interior 3D (managed to install from download)
    ION Audio Converter
    This has only come to my attention in the last couple of weeks.
    The machine is a late 2011 with Lion installed

    Contact Apple Service, iMac Service or Apple's Express Lane. Do note that if you have AppleCare's protection plan and you're within 50 miles (80 KM) of an Apple repair station, you're eligible for onsite repair since yours is a desktop machine.

  • What is a terminal window and how do I get to one?

    I basically downloaded a Httpmail plug-in for Apple Mail and want to uninstall it. I have found how to do it but I don't what a terminal window is to do what I need to do. Could you tell me how to find one.

    The Terminal window will give you access to the Unix command line so that, if you so desire, you can run commands directly from there.
    B E C A R E F U L. With Administrator privileges, you can do harm if you are not sure what you are doing.
    I take it from your first message that the unistall process for some software requires you to use the command line. Read the instructions carefully and type exactly what you are given: if possible, copy and paste into Terminal.
    If you need to have Root privilieges (see what the instructions say), you would type sudo first, then a space before the command. If you uses sudo, you will be asked for an Admin password (and a small lecture will appear onscreen -- normal, do not worry).
    If you have any more questions, do ask.

  • Problems : Starting up with CDE and Opening terminal window in JDS

    Hi
    I installed Solaris 10 GA on the system having 2.8 GHz Dual Xeon processor with EM64T.
    Installation process was fine and completed. But, I have two problems with CDE and JDS.
    Firstly, in JDS, the graphical login comes up, works fine. After I login (as root or anyone), sometimes terminal window does not start up correctly. The windows for terminal apprear, but there is no display. Thus, I cannot use the terminal in JDS, while the other menus on launch panel (e.g. StarOffice) seem to work properly.
    Secondly, in CDE, I can login, the hourglass pointer appears and changes to arrow pointer. But then, there are no items except only the pointer and wallpaper.
    Both problems do not happen at every login time. when the problems happen, I have to reboot (in CDE/JDS) or re-login (in JDS). After some rebooting or re-login, things work fine again.
    Can everybody help me?
    Thanks

    I am not Adobe staff, but I have never heard of an "online upgrade". When I purchased my CS6 upgrade  from Adobe, they sent me an email with the serial.
    Who did you go through to get this upgrade?

  • [Solved] Have Cron Job Open Terminal Window

    I want to run a ping script every morning to check the liveliness and latency of specific servers. The script itself works fine but I can't figure out how to have cron open up a terminal window so I can see the script running.
    This is what I have so far:
    #runs /home/bran/pingservers.sh everyday at 8:30 am
    10 10 * * * env DISPLAY=:0 konsole -e ~/pingservers.sh
    But it doesn't open anything I don't even know if the job is even executing.
    Last edited by brando56894 (2013-05-20 14:25:42)

    I am unsure how to get the script to open a terminal, but the journal should have some information on whether the script is running or not and if there are any errors.
    brando56894 wrote:
    I don't even think cron jobs are running at all. I changed my job to
    1 * * * * /bin/echo hello world
    and it hasn't done anything...
    As far as the job above, I just wanted to note that you have it set to run on the first minute of every hour. If you were looking for every second minute, you would want the following:
    */1 * * * * /foo/bar
    Last edited by BluMongoose (2013-05-14 22:01:48)

  • Crontab  and Cronnix application in Xserv terminal window

    I have apple remote desktop connected to a XServ running FM 5.5 Server. I double click on the server in the Master List of ARD and get the terminal - tcsh for the XSErv. There is a crontab running. In the dock of the XServ in my terminal window there is the Cronnix app.
    There is a crontab script that is supposed to send an email which isn't working.
    In crontab window there is an open command. In the crontab window there is also /scripts/files directory. Going to that directory doesn't show me any crontab scripts but it might be hidden. I tried ls
    There is an import process that happens in the morning and the email is supposed to notify everyone it happened. Do I open the crontab app? I don't want to do anything to the Filemaker Server that is running on the XServ.
    Can someone tell me how to edit Cronnix?
    thanks,

    Your symptoms sound similar to the subject of this document, concerning "Terminal.app" requiring Apple's Monaco font to be enabled:
    http://docs.info.apple.com/article.html?artnum=25730

  • [SOLVED] Formatting and installing windows on another partition

    Hello..
    I'm planning to reformat my Windows XP partition with GParted and install Windows 7 on it instead.
    When I remove the "boot" flag on my /boot partition before doing anything, then format the partition, install Windows 7 on and put the "boot" flag back with GParted live CD, everything should be working fine, shouldn't it?
    Or will formating the Windows partition somehow affect Arch (as I'm accessing it with Arch)?
    Or will Windows bootloader still overwrite Grub, even if I remove the "boot" flag on it?
    Thanks..
    Last edited by Psylver (2011-12-01 18:29:42)

    Thanks.. you were right, but everything worked fine. Took me some time to figure out how to restore Grub as I didn't realize I installed it to a seperate partition.

  • How to use string control as terminal window

    Hello All
    I am trying to create a terminal window in my VI and to do this i have a string control and a string indicator.
    I want the user to be able to write a command in the terminal and when hitting enter the control should update, but not before! I would
    like the user to be able to enter multiple commands without having to re-click the control with the mouse, so it has to stay in the
    control window. 
    The output from this string control is input to a invoke node to an external motor controller, which replies with a string input to the string indicator.
    Tried to do some event case, but not quite sure how I am going to detect only the enter command.
    Any ideas how to preceed?
    Thanks
    Regards
    Tommy
    Solved!
    Go to Solution.

    Yeah, in your event structure, look for an event of your string control called "key down"...on the left, there are several parameters coming up (char, vkey etc.) where you can use for example the char to look for char=13 (return).
    look here: http://zone.ni.com/reference/en-XX/help/371361B-01/lvprop/control_key_down/
    good luck
    christian 
    THINK G!! ;-)
    Using LabView 2010 and 2011 on Mac and Win
    Programming in Microsoft Visual C++ (Win), XCode (Mac)

  • Sometimes a Firefox window top bar goes weird, and the window controls at extreme top right disappear.

    Sometimes, after its been going quite a long time. a Firefox window top bar goes weird, and the window controls at extreme top right disappear, making it impossible to resize or close the window. The only solution I have found is to individually move the tabs to a new window. The original (bad) one then disappears as soon as the final tab is shifted.

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Unable to Open Terminal Window

    Hello,
    I am trying to do research on how to fix my current problem of not being able to open my terminal window.  When attempting to do so I get the following error message:
    You are unauthorized to run this application.
    The administrator has set your shell to an illegal value.
    I looked at some previous posts and some people said download iterm2 and put the following command: sudo chsh -s /bin/bash my_username.  After this enter password and it should be fixed.  However when doing that I get the following response: SC is not in the sudoers file.  This incident will be reported.
    Couple of things, firstly SC (which is me) is the administrator to this computer (this is my computer and there are no other users on it). 
    Either way can anyone give some suggestions on how to solve this problem so that I am able to open the terminal window.
    Much thanks in advance for anyones assistance.
    Sami

    Create a new administrator account in which to change your shell and also fix the sudoers file, which is apparently corrupt. It should have the following content:
    # sudoers file.
    # This file MUST be edited with the 'visudo' command as root.
    # Failure to use 'visudo' may result in syntax or file permission errors
    # that prevent sudo from running.
    # See the sudoers man page for the details on how to write a sudoers file.
    # Host alias specification
    # User alias specification
    # Cmnd alias specification
    # Defaults specification
    Defaults          env_reset
    Defaults          env_keep += "BLOCKSIZE"
    Defaults          env_keep += "COLORFGBG COLORTERM"
    Defaults          env_keep += "__CF_USER_TEXT_ENCODING"
    Defaults          env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
    Defaults          env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
    Defaults          env_keep += "LINES COLUMNS"
    Defaults          env_keep += "LSCOLORS"
    Defaults          env_keep += "SSH_AUTH_SOCK"
    Defaults          env_keep += "TZ"
    Defaults          env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
    Defaults          env_keep += "EDITOR VISUAL"
    Defaults          env_keep += "HOME MAIL"
    # Runas alias specification
    # User privilege specification
    root          ALL=(ALL) ALL
    %admin          ALL=(ALL) ALL
    # Uncomment to allow people in group wheel to run all commands
    # %wheel          ALL=(ALL) ALL
    # Same thing without a password
    # %wheel          ALL=(ALL) NOPASSWD: ALL
    # Samples
    # %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
    # %users  localhost=/sbin/shutdown -h now

Maybe you are looking for