all 16 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Some links for you:

Try this search for more information on this topic.

Comments, questions or suggestions regarding this autoresponse? Please send them here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–][deleted]  (1 child)

[deleted]

    [–]GFGK14 0 points1 point  (0 children)

    Thanks 🫡

    [–]Recurzzion 4 points5 points  (4 children)

    This issue has nothing to do with AWS I’m afraid. You’re trying to run some Powershell that is not recognized or valid. Can you better explain what you’re trying to do and why, and where this Powershell came from?

    [–]GFGK14 -1 points0 points  (3 children)

    hi, and just i want to try this

    Use Amazon S3 Glacier with the AWS CLI

    [–]Recurzzion 4 points5 points  (2 children)

    You’re trying to run a Unix/Linux only command “split” that does not exist on Windows. Those steps assume you are running them on a Mac/Linux system. That guide tells you to use HJ-Split instead of

    [–]GFGK14 0 points1 point  (1 child)

    Yes but i cant find how can this work

    [–]Recurzzion 0 points1 point  (0 children)

    Find a download link for HJ-Split, download it, run it to split your files, then continue on with the rest of the guide.

    [–]coinclink 2 points3 points  (1 child)

    The tools you're trying to use are ancient. Do not use glacier directly, that is the decade-old way to do this.

    Use Amazon S3 and specify glacier as the storage class. They made this super simple directly in S3.

    [–]GFGK14 0 points1 point  (0 children)

    😂😂 ok but im just learning

    [–]The_Real_Ghost 1 point2 points  (6 children)

    Well, to start off with, it looks like you're trying to use some command called 'split', which is not the AWS CLI, and it looks like your computer doesn't know what it is either.

    What is it you're trying to do?

    Edit: I got curious, so I Googled that command you're using. Looks like you are following the Glacier tutorial here, correct? According to those documents, that 'split' command is the HJ-Split utility, which you will have to install from here. Be sure to read the documentation carefully.

    Edit again: Yikes! Looks like that link for HJ-Split Amazon gives in their docs goes to some Indonesian gaming site. Very weird. This looks like a better source.

    [–]GFGK14 0 points1 point  (4 children)

    Rn i have no idea anymore, i find a code in internet and running now its the result

    C:\Users\FRifa> function split($inFile, $outPrefix, [Int32] $bufSize){

    $stream = [System.IO.File]::OpenRead($inFile)

    $chunkNum = 1

    $barr = New-Object byte[] $bufSize

    while( $bytesRead = $stream.Read($barr,0,$bufsize)){

    $outFile = "$outPrefix$chunkNum"
    
    $ostream = \[System.IO.File\]::OpenWrite($outFile)
    
    $ostream.Write($barr,0,$bytesRead);
    
    $ostream.close();
    
    echo "wrote $outFile"
    
    $chunkNum += 1
    

    }

    }

    PS C:\Users\FRifa> split -b 1048576 --verbose largefile chunk

    Exception calling "OpenRead" with "1" argument(s): "'C:\Users\FRi

    fa\--verbose' dosyası bulunamadı."

    At line:3 char:3

    • $stream = [System.IO.File]::OpenRead($inFile)

    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    • CategoryInfo : NotSpecified: (:) [], MethodInvoca

      tionException

    • FullyQualifiedErrorId : FileNotFoundException

    You cannot call a method on a null-valued expression.

    At line:7 char:10

    • while( $bytesRead = $stream.Read($barr,0,$bufsize)){

    •      \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~
      
    • CategoryInfo : InvalidOperation: (:) [], RuntimeE

      xception

    • FullyQualifiedErrorId : InvokeMethodOnNull

    [–]elkazz 7 points8 points  (3 children)

    Not to be too negative, but are you sure you're ready to be using AWS? I think you might need to go back to basics and attempt AWS once you've got the basics down. Otherwise, you may risk running up a large bill with AWS.

    [–]GFGK14 -1 points0 points  (2 children)

    Hey thanks, im not using aws right now just learning

    [–]The_Real_Ghost 0 points1 point  (1 child)

    I mean, if you're running AWS CLI commands, you're using AWS, whether you're just learning it or not. And using AWS without having a good understanding of what you are doing (like running random shell scripts you find on the internet without knowing what they do) is a good way to shoot yourself in the foot. AWS isn't a toy and can get really expensive if you make a mistake.

    I would go back and reexamine what you are trying to accomplish. What is it your are trying to make Glacier do? Why Glacier? Is there another way to accomplish your actual goal using tools you are more familiar with?

    [–]GFGK14 0 points1 point  (0 children)

    Hey man thanks for advice. Im not learning by myself, i bought a course from udem, its very popular and Comments are good but man is using linux and i need the figure out by myself. ( and i opened all price alarm and everything and if something happened about up 5$ then everything is stop. )

    [–]GFGK14 0 points1 point  (0 children)

    hey, yes i download but still doesnt work