|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 6144 (0x1800)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Move_Files, seg_0100f5
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Directory_Tools;
with Ftp;
with Ftp_Defs;
with Ftp_Name_Map;
with Log;
with Profile;
with String_Utilities;
procedure Move_Files (Hostname : String;
Username : String := "root";
Password : String;
Install_Directory : String := "/vendor/rational";
Response : String := "<VERBOSE>") is
package Dtn renames Directory_Tools.Naming;
package Su renames String_Utilities;
Installation_Area : constant String := Dtn.Default_Context;
Product_Name : constant String :=
Dtn.Simple_Name (Dtn.Prefix (Installation_Area));
-- This directory contains the files to be transfered to the Workstation.
-- The files are: Diagram2ps, Insight, Insight_Command, Layout
Workstation_Files_Directory : constant String :=
"!Tools.Design.Insight.Insight_Commands.Code1_0_1.Units.Workstation_Files";
-- converts ReleaseX_Y_Z to release.X_Y_Z
function Build_Release_Name return String is
The_Release_Name : constant String :=
Dtn.Simple_Name (Installation_Area);
End_Index : Natural := 0;
begin
End_Index := String_Utilities.Reverse_Locate
(Fragment => "release", Within => The_Release_Name);
if End_Index = 0 then
Log.Put_Line ("Invaild Release name", Profile.Error_Msg,
Profile.Value (Response));
else
return "release." & The_Release_Name
(End_Index + 1 .. The_Release_Name'Last);
end if;
end Build_Release_Name;
begin
declare
Remote_Release_Name : constant String := Build_Release_Name;
Workstation_Pathname : constant String :=
Su.Lower_Case (Product_Name & '/' & Remote_Release_Name);
begin
Ftp.Put (From_Local_File => Workstation_Files_Directory & ".Diagram2ps",
To_Remote_File => Workstation_Pathname & "/diagram2ps",
Remote_Machine => Hostname,
Username => Username,
Password => Password,
Account => "",
Remote_Directory => Install_Directory,
Remote_Type => Ftp_Name_Map.Unix,
Append_To_File => False,
Transfer_Type => Ftp_Defs.Image,
Transfer_Mode => Ftp_Defs.Stream,
Transfer_Structure => Ftp_Defs.File,
Send_Port => True,
Response => Profile.Value (Response));
Ftp.Put (From_Local_File => Workstation_Files_Directory & ".Insight",
To_Remote_File => Workstation_Pathname & "/insight",
Remote_Machine => Hostname,
Username => Username,
Password => Password,
Account => "",
Remote_Directory => Install_Directory,
Remote_Type => Ftp_Name_Map.Unix,
Append_To_File => False,
Transfer_Type => Ftp_Defs.Image,
Transfer_Mode => Ftp_Defs.Stream,
Transfer_Structure => Ftp_Defs.File,
Send_Port => True,
Response => Profile.Value (Response));
Ftp.Put (From_Local_File =>
Workstation_Files_Directory & ".Insight_Command",
To_Remote_File => Workstation_Pathname & "/insight_command",
Remote_Machine => Hostname,
Username => Username,
Password => Password,
Account => "",
Remote_Directory => Install_Directory,
Remote_Type => Ftp_Name_Map.Unix,
Append_To_File => False,
Transfer_Type => Ftp_Defs.Image,
Transfer_Mode => Ftp_Defs.Stream,
Transfer_Structure => Ftp_Defs.File,
Send_Port => True,
Response => Profile.Value (Response));
Ftp.Put (From_Local_File => Workstation_Files_Directory & ".Layout",
To_Remote_File => Workstation_Pathname & "/layout",
Remote_Machine => Hostname,
Username => Username,
Password => Password,
Account => "",
Remote_Directory => Install_Directory,
Remote_Type => Ftp_Name_Map.Unix,
Append_To_File => False,
Transfer_Type => Ftp_Defs.Image,
Transfer_Mode => Ftp_Defs.Stream,
Transfer_Structure => Ftp_Defs.File,
Send_Port => True,
Response => Profile.Value (Response));
end;
end Move_Files;
pragma Main;
nblk1=5
nid=0
hdr6=a
[0x00] rec0=1d rec1=00 rec2=01 rec3=05a
[0x01] rec0=1d rec1=00 rec2=02 rec3=004
[0x02] rec0=14 rec1=00 rec2=03 rec3=066
[0x03] rec0=15 rec1=00 rec2=04 rec3=050
[0x04] rec0=16 rec1=00 rec2=05 rec3=000
tail 0x2150bcee4822f6fdb8d96 0x42a00088462060003