GNU screen, spawn windows and issue specific command to each

Hello folks.
I want gnu screen to spawn some windows, let's say, so I've put these lines in .screenrc:
screen -t foo
screen -t bar
now I'd like to change the directories for foo and bar. I've tried multiple commands like:
screen -X at foo screen -X stuff 'cd /tmp^M'
screen -X at bar screen -X stuff 'cd ~/projects^M'
and some other variations. At best, it gives the error message: "key: screen: invalid option -X .", at worst it doesn't start at all.
Regards.

problem solved. for others in need, put in .screenrc:
screen -t foo
at foo stuff 'cd /tmp^M'
where "^M" is generated by pressing sequentially ctrl+v,ctrl+m

Similar Messages

  • Centering Applications, spawning windows and other GUI stuff

    Hi, possibly a silly question, but leave me alone I'm new :o)
    How do I get my application to center on the screen ? At the moment it opens upin the top left hand corner of the screen.
    Also whilst I'm on the topic my app with goes from screen to screen, that is when you click a button it makes turns that window "off" and opens the new destination window with setVisible(true/false), however when ever I move to the new window it always opens in the default location, is there a way in whivh the opened window appears in the location of the old one, for example, invoke the app, move the window around the screen, clikc a refresh button which will close and then re-open the same window and for the new scren to be in the new location, at the moment it will re-open in the top left hand corner of the screen as per usual

    Hi,
    You could just create a class that does it for you. See the code below for an example class that centers itself on any screen.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MyFrame extends JFrame
      public MyFrame()
        this( null );
      public MyFrame( String title )
        super( title );
      public void setVisible( boolean flag )
        if( flag )
          // Show should center on screen
          this.show();
        else
          // Hide should just call parent to perform function.
          super.setVisible( flag );
      public void show()
        //  Center this window to the main window.
        Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension thisDim = this.getSize();
        Point thisLoc = new Point();
        thisLoc.x = (screenDim.width / 2) - (thisDim.width / 2);
        thisLoc.y = (screenDim.height / 2) - (thisDim.height / 2);
        this.setLocation( thisLoc );
        //  Display window now.
        super.show();
    }Enjoy,
    Manfred.

  • Select region of screen or window and send to printer

    I was wondering if there is a 3rd party program to allow you to select portion of the screen and send it to the printer right away?  Instead of doing Shift-Command 4 which saves it to desktop it would be nice tobe able to send to picture right away and not save it.
    Is this possible?
    Thanks and I look forward to your reply.
    ....Bruce

    I was having serious problems with my HP Photosmart 7600 series printer using the built in drivers in OS X 10.5. Printing would be sporadic and would take several minutes to start and then might stop printing part-way through the print job. A lot of the time, it never started printing at all.
    After checking the iFelix list of Airport Extreme compatible printers, I noticed that the recommended driver was 2.7. After a little google-fu, it looked like the correct driver was the hpijs 2.7.1 driver that I also use with my Linux installs. After downloading the driver and some supporting packages and re-adding my printer (specifying the hpijs driver), the first print job started printing immediately!
    Curious why Apple would have a driver that isn't compatible with the APE used as the default driver when there is an open-source driver that they recommend as an APE compatible driver available...

  • Major iPhone 4s touch screen problems.  The screen randomly "quivers" and performs random commands.

    The touch screen on my iPhone 4s started flipping out yesterday.  When typing in iMessage, it will randomly pause, add strings of letters, go back to list view.  In Safari, touching the screen causes the the page to jump around or go "back". Same in apps.  Help!
    Sent from my iPad

    I also made an appointment at the Genius Bar and took my phone in Sunday.   The phone didn't exhibit any of the problems described above while I was there but honestly, I'm not sure the guy even checked.  We sat down, I described the problem, he went to the back and got me a new phone.  According to him, it had a bad touch sensor.   We backed my old phone up to iCloud one more time, got the new phone running and restored to my back up, deleted everything off of my old phone, and I was out the door in no time with a new phone, and all of my data.
    All tech products will have their share of issues, that's just the way it is.   But my experience in the store last Sunday is the reason I won't even consider buying a phone or computer from any company other than Apple. 

  • User-friendly way to issue chown commands on remote servers

    I'd like my technically unversed users to have, on demand, the benefit of chown commands giving them ownership of certain files being executed on remote servers. I'd like this to be doable without administrators' involvement and with no physical access to the servers by any of the users being entailed.
    By "benefit of chown commands" I mean the results a competent user would get entering the command if he or she were actually doing so. By "technically unversed" I mean specifically that said users aren't and won't ever be trained to ssh into subject servers and issue chown commands themselves directly.
    I should mention that the "Get Info" interface does not in this case avail users of a way to take ownership of particular files because ACEs apply to the files in question. That ACEs apply changes what is presented: instead of any editable fields under Ownership and Permissions, all users see in the "Get Info" interface is a list of whatever ACEs apply.
    Please note that users do, by virtue of ACEs, have "change ownership" permissions for the files in question. Also, authentication to the servers in question under subject users' own logins is possible as necessary.
    What I'd like to start with is getting some idea how complicated this could be for me to do myself as a beginning AppleScripter. I'll describe what I guess would be involved and hope for someone to shed light.
    I'm guessing that something the user at his or her own machine does involving a file he or she has selected would constitute an Apple Event which a process on the client would send to a process on the server. Then I expect the server process would issue the chown command locally respectively of
    1) which file was selected when the Apple Event took place, and
    2) subject user's identity.
    Finally, I expect some feedback might contingently be sent to client process incidentally to need to give user feedback.
    Is this a fair sketch of how this should work? What is a beginner with limited time likely to accomplish attempting this?
    (Find context for this posting here: http://discussions.apple.com/thread.jspa?threadID=831517&tstart=0)
    PowerMac   Mac OS X (10.4.8)  

    First, if I understand you correctly, I'd be using
    Curl and, say, Perl rather than Applescript to get
    this done. In other words, what you wrote in
    Applescript is about all I'd need in that
    language--yes?
    That's correct, give or take any errors in the script. (For obvious reasons I didn't test it.)
    Then, please note that I want to chown, not chmod. Is
    this an issue?
    Nope. (Beyond what you pointed out below.)
    I am looking at Perl documentation and read that "on
    most systems, you are not allowed to change the
    ownership of the file unless you're the superuser..."
    (http://perldoc.perl.org/functions/chown.html).
    However, isn't apache running as root?
    I never thought about that. Wow, this is complicated! Are you really sure you can't make do with chmod instead?
    Anyway, the answer is yes and no. The main Apache process usually runs as root, but executes CGI scripts (and other requests) as another user to avoid inherent insecurity. So unless you do something terribly, terribly insecure, you will not be able to chown from Perl. (And, although I am often lax about security, enabling root access for CGIs strikes even me as dangerous, which means it's a very bad idea.)
    Really what you want is for the CGI, which does not run as root, to hand off to another process which does. I'm not a Unix guru, and would never claim to be, but I think the two following methods might work:
    1. Set up a cron job running as root which looks in a directory once every minute/hour/whatever. The file name should be the user to change the owner to, and it should contain a delimited (in some form; return is possibly safe) list of files. Have the cron job walk through the list of files and use chown, then clobber the contents of the file. (Note that a CGI can use "chmod", which can make sure that the files it creates in the directory are readable by the cron job.) (Also note that you'll want to use flock to avoid race conditions between the cron job and the CGI!) This method would not be instantaneous, since the cron job only runs periodically.
    2. Set up a script which runs as root which takes a line of text in the format:
    user:path/to/file
    and executes chown using that information. Make this process run at startup as root. Have it open a named pipe, with permissions such that CGI script can write to it, and watch for input from that pipe.
    Some general notes:
    A. Whatever you do, make sure that the binary/script/whatever running as root can't be written to by anyone who doesn't have root permissions.
    B. Make sure to check that the user and file actually exist before doing anything with them. (And make sure to do it in the root process, since you have no guarantee that someone won't figure out what's going on and come up with some clever injection scheme to make your root process break security.) (And don't do it by passing a command to the shell; use Perl's chown or some equivalent, so that you'll be somewhat less vulnerable.)
    C. For that matter, don't forget to check and make sure that the path you're about to chown is within the share point, and that the user you're going to chown to makes sense in context, so that nobody can (for example) take over someone else's user directory, or get write permission to /sbin, or something evil like that. (In fact, it might be for the best if you limited the chown operations to files only, just to be sure.)
    Also, I get the part about how a constraint involving
    "do shell script" method argues against using pure
    Applescript in this case. But just for my information
    is Applescript otherwise sufficiently capable?
    If it weren't such matter of getting everything on
    one line, could Applescript send commands between
    hosts, convert local paths to paths on servers, issue
    change ownership commands, and handle authentication?
    Do methods adequate to those purposes exist in
    Applescript?
    Or would using multiple scripting languages be
    entailed anyway? I'm guessing the latter.
    Yes and no. Helpful answer, right?
    First and foremost: AppleScript was originally created as a language to control programs, which would have an extensible grammar through the installation of files called "Scripting Additions". It has since been puffed up via AppleScript Studio to an application-building language in its own right, but the language itself does not have support for a lot of things which, nevertheless, the language can do by controlling another program or by extension.
    AppleScript can send messages between hosts. If the remote host is a Mac, and has "Remote Apple Events" turned on in the "Sharing" control panel, then you can send commands to programs on the remote machine almost exactly as though they were local. (The only differences are in how you specify the application and how you let AppleScript know what the remote application "understands".) This support is built into the language.
    If the remote host is not a Mac, you must control a program which can "translate". When it comes to terminal programs, for security reasons Apple did not include any interactive systems which could be controlled. (Although they did include "expect", I see, which would theoretically allow you to work around this...)
    Since converting a path is really just text processing, yes, AppleScript can do that. I didn't try to build that in because I am under the impression that you know some other language/shell scripting tool better than AppleScript, so it makes better sense for you to put as much of the work into the parts you know, in order to make debugging easier. One method of doing it in AppleScript:
    set x to [a POSIX path found somehow for a file on a connected server]
    if (the offset of "/Volumes/" in x) is 1 then
    -- "the offset of" uses 1-based offsets, not 0 as in most languages
    set x to text 10 through -1 of x
    -- This removes "/Volumes/" from the beginning of x
    set x to text ((the offset of "/" in x) + 1) through -1 of x
    -- That removes up through the next slash, which is the volume name
    set x to "/Path/To/The/Share/Point/On/The/Server/" & x
    else
    error "The path isn't in /Volumes/, so either the server is mounted in a nonstandard way or the path isn't on a remote host at all." number 9000
    end if
    (The other method of which I am aware is to change AppleScript's text item delimiter to "/", convert the path to a list, test whether the first item is "Volumes", then put together items 3 and up into a string again. I have always had a semi-irrational prejudice against using this method because Apple's documentation circa about 1996, from which I learned AppleScript, made it sound like this might be dangerous, but it works.)
    The Finder (which can be scripted) can apparently change ownership and permissions -- a fact which I did not know until just now; I must have missed it last time I looked for it -- and of course "do shell script" can be used to call "chmod" and "chown". The problem with both of these methods, vis-a-vis your particular difficulty, is that your files are not local. You could turn on Remote Apple Events and have the Finder do it, but that's really a security hole. And a potentially maddening one to figure out if anyone starts exploiting it.
    I'd stick with a CGI and the cron/named pipe scheme. No matter what you do you're going to have a little extra security risk, just because chown requires root permissions, but minimizing that risk is probably a good thing.

  • Using "Window" (Super_L) key as escape in GNU Screen

    I've been trying to map the Windows key (to the left of the space bar) to be the escape key in GNU Screen (as opposed to ^A) with no luck. xev gives me that it generates keycode 133 and its keysym is "Super_L" so its definitely recognized by the system, but I don't know what I can write in my .screenrc to be able to use it as an escape key. I've tried googling how to do it, but the solution another person found didn't work for me (use xmodmap to map keycode 133 to something else - like F13, and then get the literal value in vim by pressing ctrl+v and the key (it generated ^[[3~ or something similar) and then putting that in the .screenrc file).
    Has anyone else solved this?

    I believe you can use the xmodmap method, although it may cause you some problems.  Try this:
    $ xmodmap -e "keycode 133 = F19"
    then put the following line in your .screenrc:
    bindkey -k F9 command
    Note the difference between using 'F19' for xmodmap and using 'F9' in the bindkey command.  This is due to bindkey using the termcap database for specifing keys.  The main problem here, as far as I can tell, is that the termcap database doesn't have any notion of the "Super_L" or "Super_R" keys, thus you have to do this strange xmodmap assignment of keycode 133 to some key that bindkey can recognize.  This will work even if your keyboard doesn't have an F19 key as my example shows.  Of course, you don't have to use function key F19; you can use any key on your keyboard.  The important thing to remember is that the bindkey command in your .screenrc file uses the termcap database (see man termcap) to determine what key to use, and the xmodmap command uses some other mechanism. You have to understand how to specify the keys for each case.
    Other possibilities:
    xmodmap -e "keycode 133 =  F1"  <==>  bindkey -k k1 command
    xmodmap -e "keycode 133 =  F2"  <==>  bindkey -k k2 command
    xmodmap -e "keycode 133 =  F3"  <==>  bindkey -k k3 command
    xmodmap -e "keycode 133 =  F9"  <==>  bindkey -k k9 command
    xmodmap -e "keycode 133 = F10"  <==>  bindkey -k k; command
    xmodmap -e "keycode 133 = F11"  <==>  bindkey -k F1 command
    etc.
    This could cause a problem if some other application you use (like your window manager or desktop environment) uses 'Super_L' for something.  I really don't understand exactly how all this works so I don't know how you could fix a conflict like that.
    Finally, when you remap 'keycode 133' to some other key, then pressing that key will now generate some character. Pressing the windows key when not in screen, at least on my system, caused a '~' to be printed.  I don't know how you would get rid of this.

  • Recurring Physical Memory Dump and Blue Screen on Windows 7

    I recently built a PC and have been getting pretty frequent blue screens whenever I use it. Today I got about 5 within an hour and have finally tried to fix it. I got Windows Debugger and have analyzed the .dmp files and the most common one that I have gotten
    is this one:
    *                        Bugcheck Analysis                                   
    WHEA_UNCORRECTABLE_ERROR (124)
    A fatal hardware error has occurred. Parameter 1 identifies the type of error
    source that reported the error. Parameter 2 holds the address of the
    WHEA_ERROR_RECORD structure that describes the error conditon.
    Arguments:
    Arg1: 0000000000000000, Machine Check Exception
    Arg2: fffffa800d062028, Address of the WHEA_ERROR_RECORD structure.
    Arg3: 00000000bf800000, High order 32-bits of the MCi_STATUS value.
    Arg4: 0000000000000124, Low order 32-bits of the MCi_STATUS value.
    Debugging Details:
    BUGCHECK_STR:  0x124_GenuineIntel
    CUSTOMER_CRASH_COUNT:  1
    DEFAULT_BUCKET_ID:  WIN7_DRIVER_FAULT
    PROCESS_NAME:  System
    CURRENT_IRQL:  f
    ANALYSIS_VERSION: 6.3.9600.17029 (debuggers(dbg).140219-1702) x86fre
    STACK_TEXT:  
    fffff880`031dfb58 fffff800`0320ea3b : 00000000`00000124 00000000`00000000 fffffa80`0d062028 00000000`bf800000 : nt!KeBugCheckEx
    fffff880`031dfb60 fffff800`02da3463 : 00000000`00000001 fffffa80`0cc9f9a0 00000000`00000000 fffffa80`0cc9f9f0 : hal!HalBugCheckSystem+0x1e3
    fffff880`031dfba0 fffff800`0320e700 : 00000000`00000728 fffffa80`0cc9f9a0 fffff880`031dff30 fffff880`031dff00 : nt!WheaReportHwError+0x263
    fffff880`031dfc00 fffff800`0320e052 : fffffa80`0cc9f9a0 fffff880`031dff30 fffffa80`0cc9f9a0 00000000`00000000 : hal!HalpMcaReportError+0x4c
    fffff880`031dfd50 fffff800`0320df0d : 00000000`00000008 00000000`00000001 fffff880`031dffb0 00000000`00000000 : hal!HalpMceHandler+0x9e
    fffff880`031dfd90 fffff800`03201e88 : 00000000`00000000 fffff880`031d7180 00000000`00000000 00000000`00000000 : hal!HalpMceHandlerWithRendezvous+0x55
    fffff880`031dfdc0 fffff800`02c8b4ac : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : hal!HalHandleMcheck+0x40
    fffff880`031dfdf0 fffff800`02c8b313 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : nt!KxMcheckAbort+0x6c
    fffff880`031dff30 fffff880`053889c2 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : nt!KiMcheckAbort+0x153
    fffff880`031ffb58 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : intelppm!C1Halt+0x2
    STACK_COMMAND:  kb
    FOLLOWUP_NAME:  MachineOwner
    MODULE_NAME: GenuineIntel
    IMAGE_NAME:  GenuineIntel
    DEBUG_FLR_IMAGE_TIMESTAMP:  0
    IMAGE_VERSION:  
    FAILURE_BUCKET_ID:  X64_0x124_GenuineIntel_PROCESSOR_CACHE
    BUCKET_ID:  X64_0x124_GenuineIntel_PROCESSOR_CACHE
    ANALYSIS_SOURCE:  KM
    FAILURE_ID_HASH_STRING:  km:x64_0x124_genuineintel_processor_cache
    FAILURE_ID_HASH:  {270f58cb-a20a-a72d-6d81-eb8c82f01f7a}
    Followup: MachineOwner
    It looks like it's happening because of a system update I may have done? I'm not sure what to make of this or how to fix it.
    Any help would be greatly appreciated.
    Thanks

    Mike
    Virtual all of these are hardware related so I would start there.  This type of crash is called a BCC124 and 99 times out of 100 it is hardware related.
    Stop 0x124 is a hardware error
    If you are overclocking try resetting your processor to standard settings and see
    if that helps.
    If you continue to get BSODs here are some more things you may want to consider.
    This is usually heat related, defective hardware, memory or even processor though
    it is"possible" that it is driver related (rare).
    Stop 0x124 - what it means and what to try
    Synopsis:
    A "stop 0x124" is fundamentally different to many other types of bluescreens because it stems from a hardware complaint.
    Stop 0x124 minidumps contain very little practical information, and it is therefore necessary to approach the problem as a case of hardware in an unknown state of distress.
     Generic "Stop 0x124" Troubleshooting Strategy:
    1) Ensure that none of the hardware components are overclocked. Hardware that is driven beyond its design specifications - by overclocking - can malfunction in unpredictable
    ways.
    2) Ensure that the machine is adequately cooled.
     If there is any doubt, open up the side of the PC case (be mindful of any relevant warranty conditions!) and point a mains fan squarely at the motherboard. That will rule out most (lack of) cooling issues.
    3) Update all hardware-related drivers: video, sound, RAID (if any), NIC... anything that interacts with a piece of hardware.
    It is good practice to run the latest drivers anyway.
    4) Update the motherboard BIOS according to the manufacturer's instructions and clear the CMOS.
    Their website should provide detailed instructions as to the brand and model-specific procedure.
    5) Rarely, bugs in the OS may cause "false positive" 0x124 events where the hardware wasn't complaining but Windows thought otherwise (because of the bug).
    At the time of writing, Windows 7 is not known to suffer from any such defects, but it is nevertheless important to always keep Windows itself updated.
    6) Attempt to (stress) test those hardware components which can be put through their paces artificially.
    The most obvious examples are the RAM and HDD(s).
    For the RAM, use the 3rd-party memtest86 utility to run many hours worth of testing. (6-8 passes to stress the ram out)
    For hard drives, check whether CHKDSK /R finds any problems on the drive(s), notably "bad sectors".
    Unreliable RAM, in particular, is deadly as far as software is concerned, and anything other than a 100% clear memory test result is cause for concern. Unfortunately, even a 100% clear result from the diagnostics utilities does not guarantee that the RAM is
    free from defects - only that none were encountered during the test passes.
    7) As the last of the non-invasive troubleshooting steps, perform a "vanilla" reinstallation of Windows: just the OS itself without any additional applications, games,
    utilities, updates, or new drivers - NOTHING AT ALL that is not sourced from the Windows 7 disc.
    Should that fail to mitigate the 0x124 problem, jump to the next steps.
    If you run the "vanilla" installation long enough to convince yourself that not a single 0x124 crash has occurred, start installing updates and applications slowly, always pausing between successive additions long enough to get a feel for whether the machine
    is still free from 0x124 crashes.
    Should the crashing resume, obviously the very last software addition(s) may be somehow linked to the root cause.
    If stop 0x124 errors persist despite the steps above, and the hardware is under warranty, consider returning it and requesting a replacement which does not suffer periodic MCE events.
    Be aware that attempting the subsequent hardware troubleshooting steps may, in some cases, void your warranty:
    8) Clean and carefully remove any dust from the inside of the machine.
    Reseat all connectors and memory modules.
    Use a can of compressed air to clean out the RAM DIMM sockets as much as possible.
    9) If all else fails, start removing items of hardware one-by-one in the hope that the culprit is something non-essential which can be removed.
    Obviously, this type of testing is a lot easier if you've got access to equivalent components in order to perform swaps.
    Should you find yourself in the situation of having performed all of the steps
    above without a resolution of the symptom, unfortunately the most likely reason is because the error message is literally correct - something is fundamentally wrong with the machine's hardware.
    More advanced reading can be found here from a MS MVP IT PRO
    http://captaindbg.com/bug-check-0x124-whea_uncorrectable_error-how-to-troubleshoot/
    Wanikiya and Dyami--Team Zigzag

  • Any issues with file sharing between Windows and latest Mac client?

    We're running Lync 2013. My Windows client is 15.0.4551.1005. Mac client is version 14.0.8.
    I open a conversation with a coworker on his Mac. I then try to share a png file. He clicks accept but then my client says the attempt timed out, and his client says that I canceled the file transfer. The coworker then boots the Mac into Windows and we try
    again, and the file share works fine. When I jump on my Mac, I can send files to his Mac without issue. When he tries to send from his Mac to my PC it fails, but when he tries to send from Windows on his Mac to my PC, it works.
    I can't find anything specific in the logs that would indicate a firewall issue. Is there a bug with file sharing between the Mac and PC clients?
    Thanks,
    Matt

    No, There isn't a bug with file sharing between Mac and Pc client.
    2941640 Desktop sharing session stops in Lync 2013 when all screen data is updated
    Also you can check below links
    http://support.microsoft.com/kb/2952672/en-us
    http://support.microsoft.com/kb/2880474/en-gb
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Gnu Screen and 10.5

    So, does anyone else have problems with Gnu Screen and OSX 10.5? If I use the box-shipped version, my PATH is completely ignored, and it doesn't understand deflogin or login in my .screenrc file.
    If I use the macports version, I get UTMP problems and unless I manually create /var/run/utmp, eventually /etc/sudoers and passwd gets updated, and UID 501 is no longer in the passwd file!

    That's actually not screen's fault.
    When bash starts, it will read either .profile_bash or .bashrc but not both, depending whether it is a shell process or subprocess.
    On X-window based systems, one of these (I can never remember which) gets read when the root window starts, and then the other gets read when every sub-process starts. On OS X this approach breaks down.
    There is a slightly different bug I have been seeing, and I think it is due to multi-threading. Basically the screen session starts before the $PATH gets entries like /sw/bin or /opt/local/bin set. I never figured out how, but my hackish workaround is simply to start screen and then invoke the process I want, rather than to do it all in one command. (This gets annoying if you are writing shell scripts that invoke screen).

  • I seem to have multiple problems related or unrelated.  I cannot use Apple Mail for blueyonder and mostly for gmail as both show that the server is off line.  My pop up blocker doesn't work and I am blitzed with pop up windows on nearly every command

    Firstly I am unable to use Apple mail except for hotmail, for blueyonder, gmail or Sky as the server shows as (off line) and I have no idea how to get them on line even though I tell them to go there. 
    My pop up blocker doesn't work and I am blitzed with advertising windows virtually on ever command I make, one seems to be impossible to unsubscribe from. 
    When I am in an email with a web link the web link doesn't work and I get a window saying that I must have a pop up blocker, but if I switch it off it is no different, what does work is switching the "enable Java script off", then when I get to the web site I can't use it until I switch the java script back on.
    I can't do a screen shot either full or partial, when I try it changes the web site that is on screen to another.
    So what have I done that might have caused problems, downloading Yosemite seemed to be the start of the problems.  Since then I have started to install Mackeeper, after checking with a family members who should know, that MacPaw is safe.  I decided that I didn't want to pay the subscription, so went through the uninstall instructions but it comes up as a pop up with considerable regularity.
    My stress levels have gone through the roof with pop ups happening so regularly and not being able to use Apple mail.o can anyone help please?
    S

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • I updated to iTunes 11 on my Windows PC. Since the update, when I open iTunes its window is too large for my screen. Resizing is a pain, because I have to change my screen resolution. And when I restart iTunes,it has reverted back to being too large.Help!

    I recently updated to iTunes 11 on my Windows PC. Since the update, each time I open iTunes its window is too large for my screen. Resizing it is a pain, because I have to change my screen resolution. And then when I restart iTunes, it has reverted back to being too large. Please help!

    Having the same issue here....a quick fix is to just minimize the window, and immediately maximize it.  It will now fit the screen.  Trouble is, after you close it, you'll have to do it again when you re-start itunes.  The good news is it takes all of about 2 seconds.  Apple should fix this.  Should.

  • Webutil usage on Windows and Unix clients - Host and Temp dir issues

    Hello,
    I am in the process of writing a Forms application which makes use of WebUtil to handle the uploading and downloading of files, as well as launching the files on the client PCs. The code below is my current 'Launch' program which works great in a Microsoft Windows environment. It gets the TEMP directory location, builds a file name, downloads the file to the TEMP directory and uses the Host command to launch the file.
    PROCEDURE Launch_DB IS
    l_directory varchar2(200) := client_win_api_environment.get_temp_directory(true);
    l_success boolean;
    BEGIN
    :file_block.full_file_name := l_directory || '\' || :file_block.file_name;
    l_success := webutil_file_transfer.DB_To_Client_with_progress
    (clientFile => :file_block.full_file_name
    ,tableName => 'FILES
    ,columnName => 'FILE_DATA'
    ,whereClause => 'ID = ' || :file_block.id
    ,progressTitle => 'Download from Database in progress'
    ,progressSubTitle=> 'Please wait'
    if l_success then
    WEBUTIL_HOST.NONBLOCKING('CMD /C "' || :file_block.full_file_name || '"');
    else
    exception
         when others then
         message('File download failed: '||sqlerrm);
    END;
    My problem is that I've just discovered that there's a new group of users that will want access to these forms, and they're using non-windows machines - mostly Solaris and Linux. As such, I have these problems:
    - " client_win_api_environment.get_temp_directory " is a Microsoft Windows specific function. Is there any way to determine a temporary storage area on a Unix machine?
    - " WEBUTIL_HOST.NONBLOCKING('CMD /C "' || :file_block.full_file_name || '"'); " - CMD is Microsoft Windows specific function. What should I do to launch a file from Unix? (Sorry, my Unix skills are pretty minimal).
    - I'm guessing that I'll need to determine the operating system so that I can use different methods to determine the TEMP dir, and to execute the HOST command. Assuming that Microsoft Windows and Unix variants are the only OS's that I need to provide access to, what is the best way to determine the client environment ( eg. IF UPPER(WebUtil_ClientInfo.Get_Operating_System) like '%WINDOWS%' THEN ... ELSE ... END IF; ) . I only have access to Windows XP for testing so I don't know what values "WebUtil_ClientInfo.Get_Operating_System" will return for any other OS.
    Thanks in advance for any assistance.
    Regards,
    Michael.

    Hi,
    as far as launching the file goes, if teh program that runs the file exist on teh local computer, you can use teh host command in webutil to access teh program and file. CMD is what you use to open teh command line on windows, but the host command is supposed to work on the UNIX client as well.
    For the temp directory, you have two options
    The short term option: Pass the temporary directory name as a user variable to Forms when starting the application. This can be user specific if adding this information to the URL using teh otherparams parameter
    The longterm option: Log a TAR with Oracle customer support to add a function to teh getClientInfo function that retruns the temporary directory for the authenticated user.
    Frank

  • Urxvt, xterm, vim, and gnu screen.

    To make this simple: all i want is 256 color support in one terminal, that will give 256 color support in vim, gnu screen, and not screw up shells i ssh into.    If I could get this working in xterm alone consider this solved.
    The more I try to fix my problem it seems the more complicated it gets.  What I want, I thought was simple:
    Now xterm seems to be the most workable solution, I guess I can give up on having clickable links, so that can go on the back burner.  But these are the problems i'm having.
    Here's the problem point by point:
    Urxvt
    $ echo $TERM
    xterm-256color
    Urxvt will run a perl script I have to display 256 colors.  Except is does not show the grayscale ramp shown here:
    VIM in urxvt does NOT show any colors.  It's all white text.
    This is my .vimrc
    $ cat .vimrc
    syntax on
    set ignorecase
    set smartcase
    set incsearch
    set hlsearch
    let g:netrw_http_cmd = "wget -q -O"
    if &t_Co == 256
    colorscheme xoria256
    else
    colorscheme desert
    endif
    in urxvt Gnu Screen
    echo $TERM
    screen-256color-bce
    the perl script does not display 256 colors like it should.
    vim in urxvt in screen again, does not show any colors. all white text.
    Xterm
    echo $TERM
    xterm
    Xterm displays the full 256 colors from the script including the grayscale ramp.
    vim in xterm displays the desert theme (i would prefer it default to the xoria256, no idea why the 256 color script works but vim doesn't see xterm as a 256 capable terminal).
    in xterm, Gnu Screen
    echo $TERM
    screen-256color-bce   ( I do not see in any file where this option is defined)
    Xterm with Gnu Screen displays the full 256 colors from the script including the grayscale ramp.
    Vim in Gnu Screen in Xterm displays 256 colors properly.
    Here is my .screenrc
    #terminfo and termcap for nice 256 color terminal
    # allow bold colors - necessary for some reason
    attrcolor b ".I"
    # tell screen how to set colors. AB = background, AF=foreground
    termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    # erase background with current bg color
    defbce "on"
    #term xterm-256color
    term screen-256color
    startup_message off
    caption always "%{= KW}%-w%{= gW}%n %t%{-}%+w %-="
    hardstatus alwayslastline "%{= kW} %-= %{= kC}Session:%u%{= kW} %5` | %{= kC}Host:%{= kW} %H | %1` |%{= kC} MEM:%{= kW} %2`MB /%{= kC} SW: %{= kW}%3`MB | %4` %{= kR}Unread %{= kW}| %m/%d %c"
    vbell off
    #Backticks to display information in status bar
    backtick 1 60 60 /home/username/bin/get_uptime
    backtick 2 60 60 /home/username/bin/get_freemem
    backtick 3 60 60 /home/username/bin/get_freeswap
    backtick 4 60 60 /home/username/bin/get_gmail
    backtick 5 60 60 /home/username/bin/get_sessionname
    defscrollback 5000
    screen -t root 0 sudo -s
    screen -t shell 1 bash
    screen -t shell 2 bash
    screen -t shell 3 bash
    screen -t shell 4 bash
    screen -t shell 5 bash
    screen -t shell 6 bash
    screen -t shell 7 bash
    screen -t irc 8 irssi
    screen -t home 9 bash
    select 1
    here is my .Xdefaults
    !XTerm*font: -*-terminal-*-*-*-*-14-*-*-*-*-*-*-
    XTerm*font: xft:DejaVu Sans Mono:size=8
    xterm*faceName: Mono
    xterm*faceSize: 8
    XTerm*background: #191919
    XTerm*foreground: white
    XTerm*pointerColor: white
    XTerm*pointerColorBackground: black
    XTerm*cursorColor: white
    !XTerm*internalBorder: 3
    XTerm*loginShell: true
    XTerm*scrollBar: false
    XTerm*scrollKey: true
    XTerm*saveLines: 1000
    XTerm*multiClickTime: 250
    XTerm*boldColors: false
    xterm*title: xterm
    xterm*geometry: 160x25
    ! Black
    XTerm*color0: #262626
    XTerm*color8: #252525
    ! Red
    XTerm*color1: #C12121
    XTerm*color9: #E50E0E
    ! Green
    XTerm*color2: #597b20
    XTerm*color10: #89b83f
    ! Yellow
    XTerm*color3: #Ded838
    XTerm*color11: #efef60
    ! Blue
    XTerm*color4: #265997
    XTerm*color12: #3F6FD0
    ! Magenta
    XTerm*color5: #706c9a
    XTerm*color13: #826ab1
    ! Cyan
    XTerm*color6: #69a2b0
    XTerm*color14: #a1cdcd
    ! White
    XTerm*color7: #BBBBBB
    XTerm*color15: #EEEEEF
    URxvt*termName: xterm-256color
    URxvt*urlLauncher: /usr/bin/firefox
    URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
    URxvt.matcher.button: 2
    URxvt.perl-ext-common: default,matcher
    URxvt*saveLines: 4000
    URxvt*background: #191919
    URxvt*secondaryScroll: true
    URxvt*scrollBar: false
    URxvt*geometry: 150x25
    URxvt.font: xft:DejaVu Sans Mono:size=8
    URxvt.xftAntialias: true
    URxvt*foreground: white
    URxvt*pointerColor: white
    URxvt*pointerColorBackground: black
    URxvt*cursorColor: white
    !URxvt*inheritPixmap: True
    !URxvt*shading: 90
    !URxvt*tintColor: #999
    URxvt*keysym.Home: \033[1~
    URxvt*keysym.End: \033[4~
    ! Black
    URxvt*color0: #262626
    URxvt*color8: #252525
    ! Red
    URxvt*color1: #C12121
    URxvt*color9: #E50E0E
    ! Green
    URxvt*color2: #597b20
    URxvt*color10: #89b83f
    ! Yellow
    URxvt*color3: #Ded838
    URxvt*color11: #efef60
    ! Blue
    URxvt*color4: #265997
    URxvt*color12: #3F6FD0
    ! Magenta
    URxvt*color5: #706c9a
    URxvt*color13: #826ab1
    ! Cyan
    URxvt*color6: #69a2b0
    URxvt*color14: #a1cdcd
    ! White
    URxvt*color7: #BBBBBB
    URxvt*color15: #EEEEEF
    To Fix In Xterm
    -Get Vim to display 256 colors without Gnu Screen
    To Fix In Urxvt
    -Get vim to display any color, but preferably 256 colors in urxvt and urxvt with Gnu Screen.  (and yes, it's a 256 capable urxvt)
    -Get shells i SSH into to recognize the reported term variable
    To Fix In Gnu Screen
    -Make it stop reporting the term variable as screen-256color-bce without losing 256 color support as this screws up shells i ssh to.
    any help would be greatly appreciated.  I feel like a dog chasing its tail b/c when I find a fix to one problem, I end up creating 1-2 more.
    Last edited by scv5 (2009-07-31 14:11:31)

    I had similar but different issues regarding this.  Now, i have 256 color support in whatever terminal/ssh/screen session I'm in.
    The relevant config lines:
    .Xdefaults:
    XTerm*termName: xterm-256color
    URxvt*termName: rxvt-256color
    .vimrc
    " 256 colors only if you can handle it
    if $TERM =~ "-256color"
    set t_Co=256
    colorscheme zenburn
    endif
    .screenrc
    # term
    term xterm-256color
    # main options
    altscreen on
    attrcolor b ".I"
    defbce "on"
    # some termcaps
    termcapinfo xterm-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    termcapinfo rxvt-256color 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    note: this setup caused an issue where background colors in mutt/htop inside screen did not extend passed the line's text.  i had to solve that via this workaround.
    Last edited by brisbin33 (2009-07-31 21:28:55)

  • Window manager issues, transparency and focus

    I recently moved from Linux to Mac and miss a couple of things. If someone can point out how to do these things in OS X, I would appreciate it.
    1) When one window of an application receives focus, raise all windows of that application.
    I use a statistical package that has separate windows for output, commands and variables. If these windows get buried below other windows, I need to give focus to all windows separately. The optimal case would be that when I focus on one window, all of these windows are brought to front.
    2) Force all windows of an application to stay on the same virtual desktop (space).
    This is a problem that occurs particularly with Word 2008. The software has the main window and a tool box window. Sometimes the toolbox and the main window get separated to different spaces. It is very annoying to give focus to the application and to realize that the first thing to do is to hunt after the main window in another space.
    3) When moving a mouse cursor over a window, make all windows that cover it transparent.
    This is my favourite feature of compiz fusion. The idea is that you can peek behind windows without shifting the focus. Also, it enables you to read a web page on full screen while typing notes on a text editor that is above the web page. Anything similar possible in OS X?
    Mikko

    I recently moved from Linux to Mac and miss a couple of things. If someone can point out how to do these things in OS X, I would appreciate it.
    1) When one window of an application receives focus, raise all windows of that application.
    I use a statistical package that has separate windows for output, commands and variables. If these windows get buried below other windows, I need to give focus to all windows separately. The optimal case would be that when I focus on one window, all of these windows are brought to front.
    2) Force all windows of an application to stay on the same virtual desktop (space).
    This is a problem that occurs particularly with Word 2008. The software has the main window and a tool box window. Sometimes the toolbox and the main window get separated to different spaces. It is very annoying to give focus to the application and to realize that the first thing to do is to hunt after the main window in another space.
    3) When moving a mouse cursor over a window, make all windows that cover it transparent.
    This is my favourite feature of compiz fusion. The idea is that you can peek behind windows without shifting the focus. Also, it enables you to read a web page on full screen while typing notes on a text editor that is above the web page. Anything similar possible in OS X?
    Mikko

  • Help Put An End to Windows Activation Issue in Boot Camp and Fusion

    Several people have indicated you should set it up Fusion first before you activate Windows. Does that mean you activate in Fusion before Boot Camp? What is also not clear is the reason for this and whether this bypasses the issue of having to activate Windows twice - once in native mode (Boot Camp) and once in VM (Fusion), if you intend on using Windows in both Boot Camp and Fusion.
    I'm hoping to finally put an end to this ongoing question and issue since I've yet to find a definitive answer on several boards. The only answer I was able to find was that you have to activate Windows in both native and VM but this obviously conflicts with what a few people have posted, unless of course I have misinterpreted what they've stated.

    Thnx. My MBP has a built-in optical drive, so that explains the first screen without the option to create the installation disk.
    So the problem remains to get Boot Camp recognize the installation disk. I tried to create an 8 GB (and after that even a 16 GB) installation disk on a USB stick and add the Boot Camp files to this stick. Next screen, Boot Camp still asks to insert the Windows Installation Disk. After that I burned the iso on a new DVD to be able to insert an original disk in the optical drive, but even this did not work out.
    Today I called Microsoft to tell me whether I was taking the right steps, but this guy couldn't help me either. "I should not install windows in a partition, but I should use parallels to install it under iOS..." ?
    The iso I have is an original disk image of Windows 8.1 Pro NL, meant to make a clean install. So what am I doing wrong?

Maybe you are looking for