How shell ssh executes multiple local scripts to download in a bash environment

We know:

ssh root@host -C "/bin/bash" < 1.sh

you can execute local scripts.

but now there are two scripts, 1.sh and 2.sh, where 1.sh is the configuration file and 2.sh needs to use the configuration file variables.
excuse me, how do ssh execute local scripts twice.

Mar.24,2021

you write source 2.sh in your 1.sh script, and then you still execute


.

@ Feng_Yu that's how I test it. Maybe it won't work. I'll test it later.

< hr >

final solution:
shell/funs/sshExecFiles.sh" rel=" nofollow noreferrer "> SSH execution file
shell/funs/sshExecString.sh" rel= "nofollow noreferrer" > SSH execution string

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48531-44c82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48531-44c82.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?