Sample Header Ad - 728x90

basename execution on remote node

0 votes
1 answer
144 views
ssh  ubuntu@$ip -n "aws s3 cp s3://bucket/$userlistlocation . --region eu-central-1 ; fbname=$(basename '$userlistlocation') ; echo "$fbname""
This above command is part of jenkins job. userlistlocation --> where user input will be in this below format foldername/filename.csv I want to print only filename here for this purpose i am using basename. Executing manually working fine. But if i try to run this on remote machine it's executing upto file download. It's not executing basename part File which i download will be source file for command execution.
Asked by rahuls36 (62 rep)
Dec 4, 2019, 06:17 AM
Last activity: Dec 4, 2019, 08:43 AM