New-PSdrive fails in script, works at command line

If I RDP to ServerA (2008R2) as userB (Domain User) and open a PS (2.0) command window, I can successfully run:
New-PSdrive -Name "X" -PSProvider FileSystem -Root "\\MYSERVER\MyShare"
But if I RDP to ServerA and launch c:\scripts\myscript.ps1 from a PS window (myscript contains the same line of code), drive X: is not mapped!
Does the script run under different permissions?  Permissions on folder c:\Scripts are wide open: Everyone = Full Control.  The Scripts folder needs to reside in a location where all users can access it.
How do I get New-PSdrive to work in myscript?
thx

Thanks for the reply.  I will explore help for get-executionpolicy.
As for the rest of the script, it's only that line for mapping a drive and then calling Robocopy.
Below are results of a test I ran.  If I map the drive first, the script runs fine.  But if I delete the mapped drive, I cannot get New-PSdrive to remap it... at least not in the script.  If I run the command in a PS window, as mentioned before,
New-PSdrive works fine.
PS C:\Users\userB> net use X: \\MYSERVER\myshare
The command completed successfully.
PS C:\Users\userB> net use
New connections will be remembered.
Status Local Remote Network
OK X: \\MYSERVER\Myshare Microsoft Windows Network
The command completed successfully.
PS C:\Users\userB> C:\scripts\myscript.ps1
Name Used (GB) Free (GB) Provider Root
X FileSystem \\MYSERVER\Myshare
ROBOCOPY :: Robust File Copy for Windows
Started : Thu Jul 25 13:07:59 2013
Source : X:\path\dir\
Dest : C:\Users\userB\dir\
Files : *.*
Options : *.* /TEE /COPY:DAT /XA:SH /R:1 /W:1
1 X:\userB\dir\test.txt
*EXTRA File 0 shortcut.lnk
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 0 0 0 0
Files : 1 1 0 0 0 3
Bytes : 0 0 0 0 0 1.4 k
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Ended : Thu Jul 25 13:07:59 2013
PS C:\Users\userB> net use * /del /yes
You have these remote connections:
X: \\MYSERVER\myshare
Continuing will cancel the connections.
The command completed successfully.
PS C:\Users\userB> C:\scripts\myscript.ps1
Name Used (GB) Free (GB) Provider Root
X FileSystem \\MYSERVER\Myshare
ROBOCOPY :: Robust File Copy for Windows
Started : Thu Jul 25 13:09:45 2013
2013/07/25 13:09:45 ERROR 3 (0x00000003) Getting File System Type of Source X:\userB\dir\
The system cannot find the path specified.
Source - X:\path\dir\
Dest : C:\Users\userB\dir\
Files : *.*
Options : *.* /TEE /COPY:DAT /XA:SH /R:1 /W:1
2013/07/25 13:09:45 ERROR 3 (0x00000003) Accessing Source Directory X:\path\dir\
The system cannot find the path specified.

Similar Messages

  • Can I add a New Folder to existing Business Area with Command Line?

    Hi,
    Can I add a New Folder to existing Business Area with Command Line in Discoverer (java or executable)? I am trying to do this with /load...
    /connect walkep_apps/walkep@smpdev1
    /load Visualizations /eul walkep_apps /user smp_naps_apps /object VISUAL_20K /capitalize /remove_prefix /insert_blanks
    /aggregate DETAIL /show_progress
    ... but this creates a new business area, "Visualizations 1", which is not what we want! We want to add the VISUAL_20K to the existing "Visualizations" business area. Many thanks in advance.
    Phil

    Bang on. thanks
    three's always an obvious solution.
    I'll post another question about how to attached a file into a Mail message which is automatically compressed/zipped. Or do i have to find the file in Finder, compress it and then attached it?

  • Sending scripts to the command line

    Is there a function I can use to send a script to the command line and capture what it sends to the standard output? For example, if I'm writing a java program that I want to execute adder.exe and store the output of adder.exe (which is just sent to standard output) in an array, how would I go about doing that?

    You might check out the methods in java.lang.Process.

  • Calling an ExtendScript script from the command line

    Hi! I can call an ExtendScript script from a command line just by using its path, but is there a way to pass parameters to the script? Thanks. -Rick

    Hi Rick,
    Well, a scan of the documentation certainly provides no evidence of this capability. If it exists, someone else will have to fill us in.
    I did have an idea, although it's a bit of a roundabout approach. A windows batch file can accept parameters and can write a text file. So, maybe Mif2Go can call a batch file instead that writes the folder to some file, then runs the script that reads the file. Although, I'm not familiar with a command line call to ES, so I'm not sure that a batch file can launch an ES script too. If not, can Mif2Go make more than one command line call?
    Russ

  • Script that works in command line fails in EM.

    Hi,
    I'm using AIX 5.3 and tivoli dpo 5.4.1. Oracle DB is EE version 10.2.0.3
    the following script works fine when I run it through a normal shell. (i.e. invoking rman by hand)
    RMAN> run {
    2> allocate channel oem_sbt_backup type 'sbt_tape' format '%U' parms 'ENV=(BLKSIZE=104857600, TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
    backup as BACKUPSET current controlfile tag '06052007023232';
    restore controlfile validate from tag '06052007023232';
    release channel oem_sbt_backup;
    3> 4> 5> 6>
    channel oem_sbt_backup: validation complete, elapsed time: 00:00:08
    Finished restore at 05.06.2007
    released channel: oem_sbt_backup
    RMAN>
    but the same script run through the Enterprise Manager console gives me :
    RMAN-03009: failure of allocate command on oem_sbt_backup channel at 06/05/2007 14:40:46
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
    IBM AIX RISC System/6000 Error: 610: Unknown system error
    Additional information: 7011
    ORA-19511: Error received from media manager layer, error text:
    SBT error = 7011, errno = 610, sbtopen: system error
    And I cannot find anything from this message (errno=610) in metalink, google or here.
    dsmerror.log and dsmoraerror.log tell me nothing, neither does sbtio.log. tdpoerror.log is empty.
    In fact everything is look fine except for EM failing to backup to tape.
    Does anyone know what is happening or what that error means?
    Thank you for your time.
    Regards
    Oli

    Have you configured your default channels from OEM, try configuring all your default channels at RMAN level, so that you dont have to specifiy in run { } script;
    For Eg. in my environment , i have following settings and backup command works fine both from shell and grid
    its Oracle 9.2.0.6
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman_backup/%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F_TAPE_CONTROLFILE';
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 5;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rman_backup/d_%d_s_%s_p_%p_t_%t' MAXPIECESIZE 1536 M;
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXPIECESIZE 1536 M PARMS "ENV=(NB_ORA_CLIENT=topdb1,NB_ORA_SERV=ilsdb2)" FORMAT 'd_%d_s_%s_p_%p_t_%t';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt1/app/oracle/product/ora92/dbs/snapcf_topaz.f'; # default
    BACKUP DEVICE TYPE SBT CURRENT CONTROLFILE;

  • WebSphere ServerRepository.xml / Deployed WAR Works, LH Command Line Fails

    Anyone deploying to WebSphere that has gotten the LH Command Line tool to function with a ServerRepository.xml pointing to a DataSource within WebSphere?
    We created a ServerRepository.xml that utilizes the WebSphere DataSource as the Performance is significantly greater for the idm.war deployed to WAS. The idm.war file works & performs better using this.
    LH Command line fails with a ServerRepository.xml pointing to a WebSphere DataSource. I've been troubleshooting with SUN support & so far we have not made any progress to resolve this. LH fails trying to execute anything...see below for example & partial cut/pasted error message.
    **set WSHOME, JAVA_HOME, & WAS_HOME 1st
    $WSHOME/bin/lh -Djava.ext.dirs=$JAVA_HOME/jre/lib/ext:$WAS_HOME/lib:/ebiz/sim/dev/lib console -u configurator
    Error:
    com.waveset.util.InternalError:
    ==> com.waveset.util.ConfigurationError:
    ==> java.sql.SQLException: invalid arguments in callDSRA0010E: SQL State = null, Error Code = 17,433DSRA0010E: SQL State = null, Error Code = 17,433
    at com.waveset.repository.ServerRepository.initDataStore(ServerRepository.java:1527)
    at com.waveset.repository.ServerRepository.getPrimaryDataStore(ServerRepository.java:1343)
    at com.waveset.repository.ServerRepository.getPrimaryDataStore(ServerRepository.java:1309)
    at com.waveset.repository.ServerRepository.init(ServerRepository.java:717)
    at com.waveset.repository.ServerRepository.<init>(ServerRepository.java:693)
    at com.waveset.repository.ServerRepository.getRepository(ServerRepository.java:134)
    at com.waveset.server.Server.init(Server.java:251)
    at com.waveset.server.Server.start(Server.java:217)
    at com.waveset.server.Server.getServer(Server.java:807)
    at com.waveset.server.Server.getServer(Server.java:784)
    at com.waveset.session.SessionFactory.getLoginConfigInfo(SessionFactory.java:849)
    at com.waveset.session.SessionFactory.startupMode(SessionFactory.java:916)
    at com.waveset.session.SessionFactory.getLoginModGrp(SessionFactory.java:885)
    at com.waveset.session.SessionFactory.getSession(SessionFactory.java:170)
    at com.waveset.session.SessionFactory.getSession(SessionFactory.java:390)
    at com.waveset.session.SessionFactory.getSession(SessionFactory.java:456)
    at com.waveset.session.WavesetConsole.newSession(WavesetConsole.java:361)
    at com.waveset.session.WavesetConsole.start(WavesetConsole.java:331)
    at com.waveset.session.WavesetConsole.main(WavesetConsole.java:218)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.waveset.util.CommandProcess.invokeMain(CommandProcess.java:212)
    at com.waveset.util.CommandProcess.launch(CommandProcess.java:162)
    at com.waveset.util.CommandProcess.run(CommandProcess.java:300)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.waveset.util.Command.main(Command.java:96)
    Wrapped exception:
    Architecture:
    IDM 7.0
    WebSphere 6.x
    Oracle THIN Driver ojdbc14.jar - 10.2.0.x
    AIX 5.3 ML3

    To get the WAR deployed within WebSphere to function, I found the IDM Doc (IDM 7.0 Installation - "Configuring a WebSphere DataSource for Identity Manager" - Pgs 117 - 134) to be pretty decent for creating the actual JDBC DataSource.
    My recommendation is to setup the DataSource at the Scope=Cell Level & use a WAS J2C Auth Entry for the DataSource so you do not need to use the -U or -P options in your setRepo command...this also helps ensure its truly connecting using WAS.
    Looking at what you had, try this modified...
    $WSHOME/bin/lh -Djava.ext.dirs=$JAVA_HOME/jre/lib/ext:$WAS_HOME/lib setRepo -n -tSQLServer -icom.ibm.websphere.naming.WsnInitialContextFactory -fjdbc/idm -uiiop://localhost:9810 -o"D:\apps\temp.xml"
    *Additional comments
    -n will bypass any checking and ignore any error message.
    -f must be identical to the WAS JDBC DataSource Name jdbc/idm
    **You do not need to redeploy after replacing the ServerRepository.xml; however, you do need to bounce the WAS AppServer & should monitor the AppServer SystemOut.log on startup to ensure the IDM WAR starts up successfully
    ***This is all assuming the DataSource you have within WAS is working (you can validate via the TestConnection)

  • Need script to run command line as administrator

    I need a VB Script to run a certain command line "wmic Product where name='XXX XXX XXX' call uninstall" in an elevated command prompt.
    This is to uninstall a hidden application.
    Is this possible? It must be I have see many others with suggestions and here it is. I tried a few I have seen but have not been able to get any to work.

    Bill,
    Thank you for the quick answer. I believe you are right in your assumption.
    I have been searching but found nothing so far.
    I need to be able to run this line "wmic
    Product where name='XXX XXX XXX' call uninstall" 
    in an elevated command prompt to uninstall the program.
    I was looking for a VB script or PowerShell to execute it remotely on non domain roaming PCs.
    Th3e command can be run remotely against stand-alone workstations but you must supply credentials.  Post in the platform forum for you version of Windows for help in using the WMIC utility.  WMIC /? will give you all of the command options fro
    remote execution.  UAC only affects local systems.  You cannot use WMIC to remote back to the local system. WMIC does not allow impersonation to the local system.
    Most installers will not automatically allow an unattended uninstall.  If there is any dialog at all the uninstall will fail and can hang.
    I recommend contacting the vendor of the application to get more information.
    In all cases you cannot bypass UAC as Bill has noted.  I am only noting that, sometimes, in a workgroup, you can use WMIC to remotely uninstall an application.
    ¯\_(ツ)_/¯

  • Execute script from AfterFX command line

    Hello all
    I'm trying to run a script from the AfterFX.exe command line and I get a message: "Unable to execute script at line 1. Syntax error"
    If I run the same script file from the AE Script Editor, it works perfectly
    Here is the command line I'm using:
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "D:\Product\Watermark\Rendering\WatermarkedSecuritySample.jsx"
    Anyone have an idea of what can cause this error? I've tried running the script directly in the command line like
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "alert('1')"
    and it works fine for short script but mine is way to big to do that
    As you can probably guess with the "Watermark" and "Security" in the filename, I cannot post the script file here, all I can say is that the line 1 is:
    var projectName = "D:\\Product\\WatermarkTemplate.aep";
    I've tried to replace the entire script with "alert('1');" and it cause the same error when running it from the command line
    Also, if anyone know where I can find the AfterFX.exe command line arguments description, I would be very happy.. everybody talks about aerender.exe but I need thoses options for AfterFX.exe
    Thanks for your help

    Have you tried to use "-r" instead of "-s"?
    (argument for "-s" is a script; and argument for "-r" is a path to script)

  • Latest DNG converter not working in command-line mode

    Today I downloaded Adobe's latest DNG converter. It is failing with both .NEF and .CR2 files when run in command-line mode. It does appear to work in GUI mode. The switches+arguments I've used for my tests are:
    -u -e -p1 filename.CR2
    (or filename.NEF)
    With an older (CS2) version of the converter, the above arguments produce a .DNG output file as expected (with .CR2 files; I didn't try it with D3 .NEF files; surely that older version doesn't support the D3's format).
    With the very latest version, running the program with the above command produces no output. There's no error message.
    The 'readme' file that comes with the converter doesn't include any information about command-line usage, but I did find a PDF file covering this (adobe.com/products/dng/pdfs/dng_commandline.pdf). The switches+arguments shown in the PDF file appear to be exactly the ones I used in the past.
    I'm sure I'll need to use the most recent version to convert D3 RAW files. Is there something wrong with how I'm specifying its command-line switches/arguments?

    It struck me silly that I've been running tests with v.3.3 when 5.2 is the latest, so I downloaded it. The setup "wizard"...hmm, why is it a "wizard"? It provides no choice of installation path. I didn't realize this because immediately after I'd launched it, I knocked something onto the floor, reached down to pick it up ... and looked back up just in time to see the "wizard" complete the installation...but where, I didn't know. It didn't display any information about where it had installed the app. Adventures In Discoverability. :) I hunted around on the hard drive until I found it (C:\Program Files\Adobe -- well, at least you can launch it if you think to look for it in the 'Start' menu). So ... that needs a bit of work. Anyway, I copied the app into a directory of my choice -- one that's in my system's %PATH%, replacing spaces in the name with underscores. It works fine in that directory -- no problem with the name-change as far as I can tell. Now back to the fun stuff...
    This version doesn't seem to require a fully qualified path to the input file or to the output directory when "-d" is used. That's an improvement. IOW, this worked:
    converter -p1 -d DNG filename
    where "converter" is the program's name, "DNG" is the name of a subdirectory of the directory where I'm running the test, and "filename" is the name of a RAW file in that directory.
    The program still doesn't know how to create a directory (or ask about creating one if it doesn't exist). Fails silently if "-d" is used and the specified directory doesn't exist. But at least this version returns an exit code of 1 due to the failure -- better than returning 0.
    Still doesn't understand wildcards. Hope done sprang eternal there for a moment, but oh well. Back to "for" loops...
    Still fails silently, returning exit code 0 (oops), if a nonsensical command-line is used (e.g., using "-c" as the only argument).
    Hey, how about a truly silly command-line error -- a command line including both "-c" and "-u". What happens? It "consumes" the first of the two mutually exclusive switches, ignoring the second -- you get a compressed DNG file. Swap the order of the switches, and you get an uncompressed file. (I'd vote for a syntax-error message in that case, m'self.)
    Interestingly strange little program...If I run it from the command line, it drops back to the command line immediately after I press ENTER. That makes it appear to have failed. But it hasn't -- it's running in the background, and a few seconds later the DNG file is created. But, if I run it from within a batch file, it does NOT return control to me until it has completed writing the output file. Wonder what's up with that.
    Fun stuff. :)

  • Running a function from a powershell script from the command line

    Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command line.
    so far, if i change directory to that of the script i can call the function by doing this:
    cd c:\myscripts
    . .\mytestscript.ps1; myfunction
    this works fine.... i have also tried, what I would like to achieve is calling it like this
    c:\myscripts\mytestscript.ps1; myfunction
    however, i am trying to run this as part of an MDT task sequence, my command line looks like this and using the ; myfunction at the end doesn't work.
    powershell.exe -ExecutionPolicy Bypass %SCRIPTROOT%\CustomScripts\mytestscript.ps1; myfunction
    how can i adapt my command line so that it will successfully call the function within my script?
    thanks
    Steve

    Rename the file from ps1 to psm1 and create a powershell module that contain multiple functions. A module will autoload like the built-in modules.
    Placement of the psm1 file is important for Powershell to find and autoload it.
    The file name and folder name must be the same, for example MyModule.psm1 should be in the folder:
    user\documents\windowspowershell\modules\mymodule
    Windows PowerShell Modules
    http://msdn.microsoft.com/en-us/library/dd878324(v=vs.85).aspx
    PS C:\> get-childItem env:PSModulePath
    Name Value
    PSModulePath C:\Users\User\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

  • Work from command line but did not work from JSP call

    I have a test class that should perform Triple DES. When I run it from command line work ok, but when runs from JSP it give me an error:
    Exception:
    ======================================
    javax.crypto.IllegalBlockSizeException: Input length not multiple of 8 bytes
    put 3 check points inside the code, and run it from command line and here is the result:
    C:\Documents and Settings\salasadi\Desktop\DigitalMailer>java TDESStringEncrypto
    r 123456781234567812345678 "CID=103&A
    this is pass 3
    this is pass 1
    this is pass 2
    here is the class:
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import java.io.*;
    public class TDESStringEncryptor
    static final int DATA_STRING_LENGTH = 64;
    public static void main(String[] args)
    try
    TDESStringEncryptor enc = new TDESStringEncryptor();
    String value = enc.Encrypt(args[0], args[1]);
    System.err.println(value);
    catch (Exception ex)
    System.err.println(ex);
    public String Encrypt(String inkey, String data)
    throws Exception
    // convert key to byte array and get it into a key object
    byte[] rawkey = inkey.getBytes();
    DESedeKeySpec keyspec = new DESedeKeySpec(rawkey);
    SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede");
    SecretKey key = keyfactory.generateSecret(keyspec);
    Cipher cipher = Cipher.getInstance("DESede/ECB/NoPadding");
    cipher.init(Cipher.ENCRYPT_MODE, key);
    byte[] out = cipher.doFinal( padString(data).getBytes( ) );
    System.out.println("this is pass 1");
    return byteArrayToHexString( out );
    private String byteArrayToHexString(byte in[])
    byte ch = 0x00;
    int i = 0;
    if ( in == null || in.length <= 0 )
    return null;
    String pseudo[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8",
    "9", "A", "B", "C", "D", "E", "F"};
    StringBuffer out = new StringBuffer( in.length * 2 );
    while ( i < in.length )
    ch = (byte) ( in[i] & 0xF0 );
    ch = (byte) ( ch >>> 4 );
    ch = (byte) ( ch & 0x0F );
    out.append( pseudo[ (int) ch] );
    ch = (byte) ( in[i] & 0x0F );
    out.append( pseudo[ (int) ch] );
    i++;
    String rslt = new String( out );
    System.out.println("this is pass 2");
    return rslt;
    private String padString( String s )
    StringBuffer str = new StringBuffer( s );
    int strLength = str.length();
    for ( int i = 0; i <= DATA_STRING_LENGTH ; i ++ )
    if ( i > strLength ) str.append( ' ' );
    System.out.println("this is pass 3");
    return str.toString();
    And here is the JSP call:
    TDESStringEncryptor encryptz = new TDESStringEncryptor();
    String cryptodata1 = encryptz.Encrypt(Keyz,cryptodata);
    Thanks

    Please use [ code ] tags when posting code.
    Please indicate the line that causes the exception.
    Please indicate what Keyz and cryptodata is.

  • Boot fails / goes straight to grub command line

    Fair warning: this is gonna be the worst request for help ever, but I'm stranded with a phone and a busted laptop.
    So, as the title suggests my laptop goes straight to the grub command line.  Having never dealt with this, I'm not really sure how to go about debugging it.
    Checking dmesg, I don't really see anything that says CATASTROPHIC FAILURE.  Then again I don't really know if dmesg can catch this sort of error.
    It's been a couple weeks since I used this laptop, but I don't think I upgraded or anything.
    I tried mounting the fs and blindly reinstalling stuff like the kernel and systemd but no dice so far.
    I can't post the actual logs right now but I might be able to later if I find an Ethernet cable.
    I think I can probably figure it out myself if someone could just point me in the right direction i.e. what the general debugging process is for this scenario.
    Again, I know this is the worst request for help ever, but if someone could help this damsel in distress it would be greatly appreciated.

    Actually, your request for help is far from the worst I have ever seen.  In fact, it is pretty good.  You tell us the problem, the history, what you see, and what you have tried.  Are you using Grub classic, or Grub 2 ?
    Are you sure?  Any chance you have updated in the last couple weeks?  You may have upgraded to Grub 2 without having built a new configuration on the boot partition.
    Also, are you in the regular shell or the rescue shell ?  https://wiki.archlinux.org/index.php/Gr … mand_shell
    Last edited by ewaller (2013-07-15 03:23:13)

  • Breakpoints not working with Command Line Project

    I have created a “Command Line Utility” “C++ Tool” and I am unable to breakpoint into the code. I’m in the Debug environment and select “Debug Executable” but no luck. I created the sample tutorial which is a Coco Hello World example and was able to get breakpoints to work there. I downloaded and installed XCode yesterday. Been trying to get breakpoints to work every since with no luck. Thanks in advance.
    Sean
    MBP   Mac OS X (10.4.9)  

    OK, the plot thickens a little. I was being too aggressive on my breakpoint. If I breakpoint at the first cout then I can breakpoint. The problem is if I break after the cin. Breakpoints after cin won’t execute and if I pause all context is lost – like the stack got corrupted.
    <pre>
    #include <iostream>
    #define ENDFILE "CTRL-D or CTRL-Q then CTRL-D in XCODE"
    int main (int argc, char * const argv[])
    char next;
    // insert code here...
    std::cout << "Hello, World!\n";
    const char NWLN = '\n';
    int charCount;
    int lineCount;
    lineCount = 0;
    std::cout << "Enter a line or press " << ENDFILE << ": ";
    std::cin.get(next);
    while (!std::cin.eof())
    charCount = 0;
    while (next != NWLN)
    std::cout.put(next);
    charCount++;
    std::cin.get(next);
    std::cout.put(NWLN);
    lineCount++;
    std::cout << "Number of characters in line " << lineCount
    << " is " << charCount << std::endl;
    std::cout << "Enter a line or press " << ENDFILE << "; ";
    std::cin.get(next);
    std::cout << std::endl << std::endl << "Number of lines processed is "
    << lineCount << std::endl;
    return 0;
    </pre>
    MBP   Mac OS X (10.4.9)  

  • How to execute SAPGUI script from the command line?

    I have created a script and would like to execute it from the command line. There must be some flag that goes with SAPGUI.EXE. Any help appreciated.
    Thanks,
    Jeff

    Hi Jeff,
    the best way to do this is to run the script using the Windows Script Host, for example like this:
    cscript myscript.vbs
    This will execute the script which in turn can access SAP GUI. You may however have to make sure the script attaches to the correct session.
    Best regards,
    Christian

  • App fails to compile with mxmlc command-line but builds fine with flash builder IDE.

    Hi,
    i have this flex app (its a flex project created from flash builder ), it compiles fine when i build it from IDE.
    it fails to compile when i do it from command line through mxmlc.
    i am invoking the mxmlc at the location <flash-builder-installation>\sdks\<flex-ver>\bin\
    the mxml file is test.mxml
    i am invoking like the following
    c:\<bin>\mxmlc test.mxml
    i dont have any dependency on any of custom swc file.
    i am getting the following type errors when i compile it from my .as file
    Error: Type was not found or was not a compile-time constant: TouchEvent
    Error: Type was not found or was not a compile-time constant: File.
    Error: Type was not found or was not a compile-time constant: FileStream
    could you please let me know what i am missing here ?
    thanks,

    Is this a AIR app or a mobile app? If you are building AIR app for desktop then you can use amxmlc instead of mxmlc.
    If its a mobile app then use mxmlc +configname=airmobile
    -Gaurav
    http://www.gauravj.com/blog

Maybe you are looking for

  • What is the BAPI or FM that returns figures as seen on Txn MMBE ?

    Hello friends, I have to create a custom report that shows some of the figures as seen on Txn MMBE.   So may I know which BAPI or Function Module to use for getting figures like MMBE ? Thanks, - Chetan PS: I searched this forum, but the earlier respo

  • Sql server service wont start after disabling TLS 1.0 and SSL 3.0 on windows

    We have been hardening our servers for some time now and recently we disabled SSL 3.0 because of the poodle attack. When I did this on one of our test servers SQL Server failed to start up after the restart. I have been able to reproduce this on Wind

  • Servlet and awt.Frame

    hello there, i'm a newbie with java and servlets... and i'm having this problem: public class main extends HttpServlet {      private static final long serialVersionUID = 1L;      MyFrame a;      public void doGet(HttpServletRequest request, HttpServ

  • Thumbnails not appearing in iPhoto 6.

    Recently when opening iPhoto'06 I got the drop-down to rebuild my thumbnails which I accepted. It was proceeding quite slowly for a while and then a sudden rush to completion (over 500 photos in there). Next thing, I have less than half of the thumbn

  • Adobe Premiere Elements 7.0

    I teach multimedia classes to high school students. We use Premiere Elements 7.0 in my lab. I have provided .mov video clips to my students to use. Half of the class can import the clips with no problem. The other half gets a message that says the fi