Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
How to write a shell script for "AWS S3 Cp" and wait for completion

I have a shell script that will download the files from S3 folder, after the download is complete I want to perform certain other actions

How can I write a shell script that will wait for the download to complete and execute the remainder of the script

S3SourcePath=$1 Targetlocation=$2

Clearing the target location files

rm -frd $Targetlocation/*

download the files from S3 to Local

aws s3 cp $S3SourcePath $Targetlocation --recursive

cd $Targetlocation

printf '%s\n' "$PWD"/* >upload.csv printf "%s\n" 1 i "File_or_Folder_Path" . w | ed upload.csv

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda