Problem with exexuting an OS command

Hello!
Our SAP System runs on Solaris. I want to move files from a directory in a subdirectory, similiar to this:
from:
/dir/file1.csv
/dir/file2.csv
/dir/file3.csv
to:
/dir/subdir
I made an OS command with the SM69 and executed it with SM49. The command was:
mv /dir/file* /dir/subdir
Unfortanately it doesn't work. There's the message:
mv: no access to /dir/file*
return code 2
If i execute
mv /dir/file1.csv /dir/subdir
it works, but that's not what i want.
Has anybody an idea?
Best wishes
Georg

Hello,
I dont know exactly your problem why you want to do file*. But if your problem is finding the exact filename at runtime...and then move to some archive folder
Try this
Use GET_JOB_RUNTIME_INFO function module to get the exact file name and then you can do the move with the exact file name using external os command. Either you can use event raise or write an ABAP program.
GSM.

Similar Messages

  • I have a problem with ALV Grid User Command?

    Hi Experts,
    I have a problem with ALV GRID User Command.
    I am calling TCODE IW33 (Order Display) from the ALV output at first time by selecting an order. But, User command is calling IW33 Initial screen with blank value of order. Even I checked in debugging the value what I selected is passing properly, but once that screen (IW33 Initial) displays, value doesn't appear. Then, Manually, I  created another session and gone to TCODE IW33 and displayed an order. After that I came out from that order. Then again run my ALV program and selected another order, now order is displaying, but not what I selected current order instead of displaying previous order what I just displayed manually. If I selected any other order, system will display the same order what I dislayed manually.
    Here is my code.
    FORM user_command_alv  USING u_ucomm TYPE sy-ucomm
                           us_self_field TYPE slis_selfield.
    CASE u_ucomm.
    WHEN '&IC1'.
    READ TABLE it_final INDEX us_self_field-tabindex INTO wa_final.
            WHEN 'ORDER'.
              IF NOT wa_final-order IS INITIAL.
                SET PARAMETER ID 'COK' FIELD wa_final-order.
                CALL TRANSACTION 'IW33' AND SKIP FIRST SCREEN.
              ENDIF.
    endform.
    PARAMETER ID 'COK'  also the standard one.
    Could you please help me out, Where I did wrong?
    If I select any order, that order only should display.
    Thanks in advance.
    Regards,
    Sarayu.
    Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:33 PM

    hi,
    Please check it once the Paramater ID is 'ANR' for IW33 order number.
    Hope this may help.
    Regards,
    Sravanthi

  • Problem with output string to command

    hey i have no idea why this aint working
    its a simple output string to command.
    what it is supposed to do is make a new directory given by the input string
    e.g. mkdir /home/luke/dep
    thanks for the help
    //methods input save files
         saveFile = JOptionPane.showInputDialog("Save Files To : ");
         //method command for saving files
         //Stream to write file
         FileOutputStream fout;          
         try { Process myProcess = Runtime.getRuntime().exec("mkdir" + saveFile );
          InputStreamReader myIStreamReader = new InputStreamReader(myProcess.getInputStream());
          fout = new FileOutputStream ("file.txt");
          while ((ch = myIStreamReader.read()) != -1) { new PrintStream(fout).print((char)ch); } }
              catch (IOException anIOException) { System.out.println(anIOException); }

    What you fail to understand is that "aint working" and "Problem with output string to command" tells us absolutely squat about what your problem is. This is the same as saying to the doctor "I'm sick" and expecting him to cure you. As mentioned by Enceph you need to provide details. Do you get error messages? If so post the entire error and indicate the line of code it occurs on. Do you get incorrect output? Then post what output you get, what output you expect. The more effort you put into your question the more effort others will put in their replies. So until you can manage to execute a little common sense then the only responses you will get will be flames. Now is your tiny little brain able to comprehend that?

  • Having problems with using shift alt command when using the square tool

    having problems with using shift alt command when using the square tool

    Marco,
    If no good reason, such as the one suggested by Silkrooster, is present, you may try the list, hoping for one of the easy ones at the top.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Problem with SAP Script (Control Commands)

    Dear friends,
          I am facing one problem withg control commands. When i use <b>PROTECT.....ENDPROTECT</b> with <b>VAR type</b> window then it is not working instead i use with <b>MAIN type</b> window it is working fine. Another problem with <b>BOX command</b> when i use with <b>MAIN type</b> window then it is not working but when i use with VAR type window then it is working fine. SO i am little bit confused that is there any relation between control commands and window type?
    THanks & Regards,
    Bhavin

    Hi,
    There is no restriction to use any control commands on any windows.
    The SAP doesnt give any error, but the point of using Protect Endprotect in windows other than main window doesnt apply.
    Only main window carries from one page to another. So in order to print certain lines in a single page we use this control command.
    Regarding BOX command it works fine on any window.
    Thanks and Regards.
    Lavanya.

  • FYI: MS-7125 BIOS has problem with Hard Drives withNative Command Queuing (NCQ)

    For those the have messed my two treads on which both ended up being cause by K8N Neo4 BIOS problem with HD's with NCQ.
       Will wonders never cease? MSI Support finally conceded the BIOS has a problem with Hard Drives with NCQ and they have forwarded the problem to their programming department.
    However, do not look for any results for above two weeks.
    Roger

    The problem that this thread has been trying to follow is the incapability of the nVidia RAID Controller with Serial ATA Type 2.5 drives.  I know the threads has been hard to follow and part of that is because when I started the thread I had what appeared to be three totally un related problems, but all three were traced down the common problem of the incapability of RAID Controller with Serial ATA Type 2.5 drives.
    The title of this thread is MS-7125 BIOS has problem with Hard Drives with Native Command Queuing(NCQ).  The statement was true at the time it was written and has nothing to do with memory problems.
    Sense the thread was started MSI has fixed the BIOS part of the problem, but we have sense learned the nVidia RAID Controller Command software and its driver has problems too.  I have been working MSI Support, they have been using me to test pre-beta BIOS and Drivers soon.   Of the testing I have done the pre-beta BIOS worked and the Pre-beta 32-bit driver works.  I am assuming that the latest BIOS V1.B had as part of it included fixes was the needed fixes for working with the nVidia RAID Controller as I have test the pre-beta RAID Driver with BIOS Version V1.B as the Raid array function fine windows XP Pro 32-bit Edition.  As I have had no communications with MSI support of over a week now I am hoping for a release of 32-bit and 64-bit RAID Drivers.   But, nobody should get the hopes up, because through other backdoor sources nVidia is having a hell of a time.  One reason for this I heard is that the nVidia RAID Controller is fully software, no hardware other than the electrical drive interfaces.  Their problem started when they tried using the old 32-bit code Controller with new 64-bit hardware drivers and now they are having to totally rewrite the controller core in 64-bit code.  But, knowing my source, it may all be fiction.
    The RAID Array you say is up and running, are the drives full specification SATA 2.5 in other words do the both have 3Gb/s speed and NCQ.  If you send me the full part numbers I will check the specifications a get back to you.  Because if you have nVidia RAID 0 Array you working you will be the first to have done it and there about 230 people around the world that would like to know how you did it, even MSI, who's pre-beta nVidia RAID Drivers that will work with BIOS V1.B for 32-bit Windows only and nothing for Windows XP 64, would like to know.
    Roger

  • [SOLVED] problem with spaces and ls command in bash script

    I am going mad with a bash script I am trying to finish. The ls command is driving me mad with spaces in path names. This is the portion of my script that is giving me trouble:
    HOMEDIR="/home/panos/Web Site"
    for file in $(find "$HOMEDIR" -type f)
    do
    if [ "$(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)")" -gt 30 ];
    then echo -e "File $file is $(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)") old\r" >> /home/panos/scripts/temp;
    fi
    done
    The dateDiff() function is defined earlier and the script works fine when I change the HOMEDIR variable to a path where there are no spaces in directory and file names. I have isolated the problem to the ls command, so a simpler code sample that also doesn't work correctly with path names with spaces is this:
    #!/bin/bash
    HOMEDIR="/home/panos/test dir"
    for file in $(find "$HOMEDIR" -type f)
    do
    ls -lh "$file"
    done
    TIA
    Last edited by panosk (2009-11-08 21:55:31)

    oops, brain fart. *flushes with embarrassment*
    -- Edit --
    BTW, for this kind of thing, I usually do something like:
    find "$HOMEDIR" -type f | while read file ; do something with "$file" ; done
    Or put those in an array:
    IFS=$'\n' ; files=($(find "$HOMEDIR" -type f)) ; unset IFS
    for file in "${files[@]}" ; do something with "$file" ; done
    The later method is useful when elements of "${files[@]}" will be used multiple times across the script.
    Last edited by lolilolicon (2009-11-09 08:13:07)

  • Problem with zip operating system command

    Hello,
    i have the following configuration in the file receiver adapter:
    Directory: /tmp/
    File Name Scheme: %name%.txt
    Variable substitution:
    Variable Name: name                 Reference: payload: record,1,name,1
    Run Operating system command:
    /usr/bin/zip /tmp/%f.zip %F
    The execution is succesful, but i have a small problem. The file name is "file.txt.zip", the .txt should appear but i dont know how to skip it, I have tried so many ways but it doesnt work, I should receive a file called "file.zip" With a file inside in txt format...
    Thanks,
    Luis

    Hi Sriram,
    Thanks, but that wouldnt work out, Im using the %f for my file name, so this move command shouldnt work for me, because my filename changes in every execution, so I cant write something like this: mv file.txt.zip file.zip
    The only solution I see would would be a command which deals with strings and that could remove the four last characters of "%f"..but I havent found anything for doing it.
    Regards,
    Luis

  • Yosemite problems with double click dock commands and keyboard shorcuts

    I have a mid 2012 macbook pro 17", i recently installed Yosemite although it fixed my internet problem (connection dropping randomly) now i am having issues with opening apps and files. Double clicking on a file launches the corresponding app but does't open the file i just get and message stating the app is not open anymore if click the file again. Finder keyboard shorcuts such as command+Q don't work. Can't access some menu items such as "about this mac". Dragging a file into the dock icon launches the app but doesn't open the file either.
    I have no idea what's causing this. anybody got a clue or having similar problems
    Thank you

    Same problem here. (Yosemite 10.0.1)
    the mouse is a 'team scorpion g-reaver' http://teamscorpion.net/ts2014/g-reaver_1.html
    It's work perfectly on the pc of my brother (he uses windows).
    It's a clean install...
    And has a funny fact... The Left Button was with this problem... So what I did? I changed the primary mouse button to the Right... Worked ok for almost 1~2 days... After that, the two buttons showed the double-click problem....
    But, I repeat, the mouse works perfectly in the windows of my brother '-'

  • Problem with Quicktime controls and commands

    I'm finding the best way to put a video together is to edit individual pieces with QT Pro. Problem is that it's pretty darned annoying because mouse and keyboard controls don't always work as they should.
    Sometimes I'll press the space bar and instead of playing, the volume mutes/unmutes...there is a blue glow around the volume controls and until I click around and unlodge it somehow, it stays that way.
    Other times, I'll click on the timeline and instead of the playhead moving to where I click, it will move forward a little bit....or it won't move at all.
    And on top of that, I still haven't found solid documentation on when the playhead turns dark, as opposed to staying "hollow"...or whether or not that's relevant to the problem.
    I've found plenty of resources that have shortcut keys listed, some of them "undocumented." But I feel as if I'm missing something...is there anything I can do to avoid these problems, or at least is there a rhyme or reason as to how they happen?
    Thanks.

    Play/Pause Space bar
    Play or pause all movies Command-Return
    Play movie backward Shift-double-click Command-Left Arrow
    Stop playback and go back one frame Left Arrow
    Stop playback and go forward one frame Right Arrow
    Go to beginning of selection or movie Option-Left Arrow
    Go to end of selection or movie Option-Right Arrow
    Turn volume up Up Arrow
    Turn volume down Down Arrow
    Turn volume up to maximum level Option-Up Arrow
    Turn volume down to minimum level Option-Down Arrow
    Enter full-screen mode Command-F
    Exit full-screen mode Command-period or Esc
    QuickTime Pro keyboard shortcuts
    Play movie at half size Command-0
    Play movie at normal size Command-1
    Play movie at double size Command-2
    Play movie at full size Command-3
    Move In marker to playhead location i key
    Move Out marker to playhead location o key
    Extend selection to the left Option-Shift-Left Arrow
    Extend selection to the right Option-Shift-Right Arrow
    Extend selection to the point clicked in LCD Shift-click
    Letters j, k and l keys can be used for "scrubbing":
    k equals "pause"
    j equals "reverse" playback. Tap two times to go "double" speed. Tap three times for "triple" speed.
    l equals "forward" playback. Tap twice for double speed. Three times for triple speed.

  • Problem with Make (C language) command on Aquamacs

    Hello i'm french.. so sorry for my English
    i'm trying to do some basics programs on C langage on Aquamacs.
    but the "make" command does not works with me.
    my module is like this
    #include <stdlib.h>
    #include <stdio.h>
    #include "arithmetique.h"
    int max(int a, int b)
      if (a>b)
        return a;
      return b;
    int puissanceDe2(int n)
      int p2 = 1; 
      for (int i=0; i<n; i++)
        p2*=2;
      return p2;
    int resteTq(int    a,int b)
      while(a>=b)
          a-=b;
      return a;
    int resteFor(int a, int    b)
      for(;a>=b;a-=b)
      return a;
    int resteRj(int    a,int b)
      if(a<b)
        return a;
      do
        a-=b;
      while(a>b);
      return a;
    int pgcdRec(int a,int b)
      if(a==b)
        return a;
      if(a<b)
        return pgcdRec(b-a,a);
      return pgcdRec(a-b,b);
    int pgcdIter(int a,int b)
      while(a!=b)
          if(a<b)
        b-=a;
          a-=b;
      return a;
    my makefile like this:
    # Makefile
    arithmetique: arithmetique.o testArithmetique.o
        gcc arithmetique.o testArithmetique.o −o arithmetique
    arithmetique.o: arithmetique.c arithmetique.h
        gcc −std=c99 −g −Wall −Werror -c arithmetique.c
    testArithmetique.o: testArithmetique.c arithmetique.h
        gcc −std=c99 −g −Wall −Werror -c testArithmetique.c
    and my compilation error like this:
    make
    gcc −c −std=c99 −g −Wall −Werror arithmetique.c
    i686-apple-darwin11-llvm-gcc-4.2: −c: No such file or directory
    i686-apple-darwin11-llvm-gcc-4.2: −std=c99: No such file or directory
    i686-apple-darwin11-llvm-gcc-4.2: −g: No such file or directory
    i686-apple-darwin11-llvm-gcc-4.2: −Wall: No such file or directory
    i686-apple-darwin11-llvm-gcc-4.2: −Werror: No such file or directory
    arithmetique.c: In function 'puissanceDe2':
    arithmetique.c:17: error: 'for' loop initial declaration used outside C99 mode
    make: *** [arithmetique.o] Error 1
    Compilation exited abnormally with code 2 at Wed Nov 28 21:26:29
    i'm at university and thoses files works on Ubuntu but not on my Mac.. someone can tell me why?
    xCode is installed already. Direct commands with gcc works.

    Oh thanks !
    i have complete your makefile with my good files and it works !
    # Makefile
    CFLAGS=-std=c99 -g -Wall -Werror
    CC=gcc
    arithmetique: arithmetique.o testArithmetique.o
        $(CC) -o arithmetique arithmetique.o testArithmetique.o
    arithmetique.o: arithmetique.c arithmetique.h
        $(CC) $(CFLAGS) -c arithmetique.c
    testAr.o: testArithmetique.c arithmetique.h
        $(CC) $(CFLAGS) -c testArithmetique.c
    thanks for your answer.

  • Problem with JUnit Testing from Command Prompt

    Hi There,
    Related Info:
    OS - Windows 7 32 Bit, IDE Used: Eclipse
    I'm using the following command to compile the java file from the command prompt:
    C:\Users\J\Desktop> javac -classpath .:junit.jar check4PrimeTest.java
    I get the error: "package junit.framework does not exist import junit.framework.*;"
    How can i fix this?
    I have downloaded junit from junit.org the 'junit4.10' and extracted in my Java Folder along side jdkjdk1.7.0_03, jre6, jre7.
    I will post my code below for the 'check4PrimeTest.java' file which im trying to test from the command prompt.
    package check4prime;
    // check4PrimeTest.java
    //Imports
    import junit.framework.*;
    public class check4PrimeTest extends TestCase {
         //Initialize a class to work with.
         private check4Prime check4prime = new check4Prime();
         //constructor
         public check4PrimeTest (String name) {
              super(name);
         //Main entry point
         public static void main(String[] args) {
              System.out.println("Starting test...");
              junit.textui.TestRunner.run(suite());
              System.out.println("Test finished...");
         } // end main()
         //Test case 1
         public void testCheckPrime_true() {
              assertTrue(check4prime.primeCheck(3));
         //Test cases 2,3
         public void testCheckPrime_false() {
              assertFalse(check4prime.primeCheck(0));
              assertFalse(check4prime.primeCheck(1000));
         //Test case 7
         public void testCheck4Prime_checkArgs_char_input() {
              try {
                   String [] args= new String[1];
                   args[0]="r";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } //end testCheck4Prime_checkArgs_char_input()
         //Test case 5
         public void testCheck4Prime_checkArgs_above_upper_bound() {
              try {
                   String [] args= new String[1];
                   args[0]="10001";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_upper_bound()
         //Test case 4
         public void testCheck4Prime_checkArgs_neg_input() {
              try {
                   String [] args= new String[1];
                   args[0]="-1";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_neg_input()
         //Test case 6
         public void testCheck4Prime_checkArgs_2_inputs() {
              try {
                   String [] args= new String[2];
                   args[0]="5";
                   args[1]="99";
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
               } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_2_inputs
         //Test case 8
         public void testCheck4Prime_checkArgs_0_inputs() {
              try {
                   String [] args= new String[0];
                   check4prime.checkArgs(args);
                   fail("Should raise an Exception.");
              } catch (Exception success) {
                   //successful test
         } // end testCheck4Prime_checkArgs_0_inputs
         //JUnit required method.
         public static Test suite() {
              TestSuite suite = new TestSuite(check4PrimeTest.class);
              return suite;
         } //end suite()
    } //end check4PrimeTestEdited by: 963042 on Oct 3, 2012 8:57 PM
    Edited by: 963042 on Oct 3, 2012 10:07 PM

    963042 wrote:
    C:\Users\J\Desktop> javac -classpath .:junit.jar check4PrimeTest.javaThat's the Linux way to do it. On windows there is a different list separator. Use this:
    javac -cp .;junit.jar check4PrimeTest.java
    And use -cp to save you some typing ;) If you want to incorporate unit testing into your builds I would suggest looking into automating it a little more through tool such as ant, maven, etc.

  • Problem with String Parameter in Command

    I'm running CR XI. I have a report that I want to change the command to use a parameter rather than an hard-coded number that I used for testing. The text of the SQL is:
    select j.instrument_type,j.cost_type_cd,j.customer,j.bs, j.product,j.del_pd, j.bl_num, j.date2,j.match,j.jrnl_ref,j.mot_name,
    j.tank_name, j.trade_num ,  j.date3, j.volume,  j.invoice, j.trade_price,
    j.mrkt_price,  j.book_pl,  j.pl,  o.strategy_name, j.snapshot
    from JE_TABLE_{?TName} j,  ORG_STRATEGY o
    where j.STRATEGY in (select o.external_ref from org_strategy o where o.strategy_name='{?StratName}')
    and j.strategy=o.external_ref and j.cost_in_mtm=1
    order by j.PL
    When I added the '{?StratName}' to the SQL, CR started aslways failing telling me I had an invalid character. So, I changed to double quotes and the error message changed to the expected Oracle error becuase it does nto like  double quotes but I did not get the invalid character error.
    This is a string parameter so I need the single quotes. What do I need to do to get CR to handle it? I've used this structure before ino other reports and it never objected to the single quotes before.
    Could the command just be corrupt?

    I decided to create a new blank report and added the command as before and then paramterized it. This time there was no problem. It must be that the other command was corrupt.

  • Data Acquisition problem with multiple length of commands and data received.

    Hello,
    I need to write a program to communicate with a Data Acquisition board. There are about 10 commads and each has a different number of bytes associated with it. For example command-1 has 4 bytes which need to be send to the DAQ, command 2 has 6 bytes, Command 3 has 4 bytes etc...
    When the board responds back to the commands I send, it responds back with different number of bytes for each command. For example, When Command 1 is send to the board, it responds back with 3 bytes of data, whereas when command-2 is send it responds back with 5 bytes of data.
    Each data byte received by my labView program from the board, needs to be displayed after some processing has been done. This processing may or may not happen on all the bytes of data got back.
    I want the program to be scalable, so that if more commands are added later on, the display and the processing changes in accordance with that.
    What will be the best approach for such a system ? I want the system to be dynamic, and dont want to repeat or re-write the code for each case statement ( case statements will be decided by the commands).
    Any input is welcome.
    Thanks,
    birapxi

    Hello Dennis,
    That is certainly one way of doing it, but it is the brute force method. Is there any way to use clusters and add the data bytes coming in and going out to clusters. Also when the user sends a specific command out, can I use the unbundle by name function to send the bytes corresponding to that command.
    For displaying the data received, can I follow a similar approach and use unbundle by name function to just display the specific data bytes for the command i have received.
    Thanks for your input,
    birapxi

  • Problem with executing java on command prompt

    Hi my program uses java mySQL connector to connect to a local host. The program works fine when i run through netbeans. But when i run through command prompt it gives in this error message
    java.lang.ClassNotFoundException:com.mysql.jdbc.Driver Can anyone help me to solve this problem

    add mysql.jar file to ur classpath, it will work fine.

Maybe you are looking for

  • Unable to find Adobe PDF resource files on Acrobat X Pro

    I have a Windows 7 32-bit machine that receives the following error when attempting to create a PDF from Microsoft Office Word 2010: "Unable to find "Adobe PDF" resource files. "Acrobat PDFMaker" You must have Administrator priveleges to install thes

  • What it the problem with Flash sound?

    I have had nothing but a nightmare with the use of voice with Flash. It sound fine when I record it. It sound fine when I'm working with it in Flash. As soon as I export it the sound winds up all squished. What am I doing wrong?

  • Problem with sounds in Gaim 2.0.0beta6

    When I upgraded to the new Gaim beta in the repos, somehow I am only able to choose system beep or command as my sound options.  Both of these options are rather annoying.  Is there any way around this?

  • How to retrieve price per unit in SAP?

    Hi all! does anyone know what are the steps to retrieve from SAP price per unit value that customer was invoiced? I am writing Z program for retrieving price per unit (for example per kilogram) in order to calculate debit/credit memo invoice for the

  • Cannot quick change font with arrow key / mac

    I have been using illustrator for years on windows and just recently switched to mac. On the windows version of Illustrator CS5 you can preview different fonts on the desired text by just placing the cursor on the font selection bar and then simply p