Warning: session_start(): open(/var/lib/php/sessions/sess_e1osuajg15bmpc7o9oogljisvj, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
static S host = "tinybrain.de";
static S user = "root";
static S remotePath = "/tmp/testfile.txt";
p-tt {
print("Connecting to " + host + " as " + user + "...");
byte[] data = toUtf8("Hello world!");
print("Uploading to: " + remotePath);
scpUpload(user, host, remotePath, l(data), new ByteArrayInputStream(data));
print("Done! Listing...");
print(quickSSH2(user, host, "ls -l " + bashQuote(remotePath), 30));
print("Printing file");
print(quickSSH2(user, host, "cat " + bashQuote(remotePath), 30));
}