Fermé

Bash Script CURL POST Error

Job Description:

Please read carefully, otherwise i dont answer auto bids.

I get error FILE NAME TOO LONG

#!/usr/bin/bash

BACKDIR=/home/ykose/yedekSBOX

DATE=`date +'%m-%d-%Y'`

WPDOSYA=`for file in $BACKDIR/*$[login to view URL]; do echo "${file}"; done`

BASE64=$( base64 $WPDOSYA -w 0)

curl -X 'POST' \

'[login to view URL]' \

-H 'accept: /' \

-H 'Authorization: Bearer $2b$10$DQmaItvVtZUUpEDCwGLPCOazPAms02NytCa81uWTQgVqJcS4_5g4m' \

-H 'Content-Type: application/json' \

-d @< '{

"phone": "999999999",

"filename": '[login to view URL]',

"base64": "data:file/pdf;base64", '$BASE64',

"isGroup": "false"

}'

How can i fix the FILE NAME TOO LONG error?

$20 for the correct answer.

Compétences : Script Shell, PHP, Linux, MySQL, Python

Concernant le client :
( 20 commentaires ) Ankara / Çankaya, Turkey

Nº du projet : #35450653

6 freelances font une offre moyenne de 18 $ pour ce travail

BitLabs

Hello, I have gone through your outsourced requirements " Bash Script CURL POST Error " and have analyzed that I have right skills ( PHP Python Linux Shell Script MySQL ) to execute your esteemed project. I wil Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(128 Commentaires)
6.7
konanhenry1111

⭐⭐⭐I can start now and I am confident that I can do it ⭐⭐⭐ I have 10 years of experience in this field and I have these skills (MySQL, Linux, PHP, Shell Scriptand Python) so just check my reviews and please have a look Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(9 Commentaires)
3.6
elgharably2022

Hi - happy to help - please send me the githup repo and i will try my best to solve your problem - I am a Full Stack Developer with 15+ years of experience with 120+ clients - waiting for your reply. Thanks

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0
mradu0212

Here are a few possible solutions: Use a shorter file name: One of the easiest ways to fix this error is to simply use a shorter file name. This will reduce the length of the file path. Use the --shorten-file Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0