gjf2a@20003LPUX:~/solutions320$ cargo run --bin vssh
Compiling solutions320 v0.1.0 (/home/gjf2a/solutions320)
Finished dev [unoptimized + debuginfo] target(s) in 1.75s
Running `target/debug/vssh`
/home/gjf2a/solutions320$ cd src/bin
/home/gjf2a/solutions320/src/bin$ grep fn vssh.rs
fn main() {
fn process_next_line() -> anyhow::Result<Status> {
fn run_command(command: &str) -> anyhow::Result<()> {
fn externalize(command: &str) -> Vec<CString> {
/home/gjf2a/solutions320/src/bin$ cd ..
/home/gjf2a/solutions320/src$ cd ..
/home/gjf2a/solutions320$ ls
Cargo.lock Cargo.toml grep_test.out src target toml.out
/home/gjf2a/solutions320$ exit
let mut argv = Vec::new();
for arg in ["wc", "src/bin/fork3.rs"] {
argv.push(CString::new(arg).unwrap());
}
ferrer@20003LPUX:~/solutions320$ cargo run --bin vssh
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/vssh`
/home/ferrer/solutions320$ ls -lth > listing.out
/home/ferrer/solutions320$ cat < listing.out
total 44K
-rw------- 1 ferrer ferrer 0 Feb 12 08:35 listing.out
-rw-r--r-- 1 ferrer ferrer 293 Feb 12 08:31 Cargo.toml
drwxr-xr-x 3 ferrer ferrer 4.0K Feb 12 08:22 target
-rw-r--r-- 1 ferrer ferrer 15K Feb 12 08:22 Cargo.lock
-rw-r--r-- 1 ferrer ferrer 667 Feb 12 08:22 bare_metal_modulo
-rw-r--r-- 1 ferrer ferrer 49 Feb 12 08:22 baroque_hoedown.txt
-rw-r--r-- 1 ferrer ferrer 108 Feb 12 08:22 grep_test.out
drwxr-xr-x 3 ferrer ferrer 4.0K Feb 12 08:22 src
-rw-r--r-- 1 ferrer ferrer 106 Feb 12 08:22 test
/home/ferrer/solutions320$
/home/gjf2a/solutions320$ ls -l | grep Cargo | sort
-rw-r--r-- 1 gjf2a gjf2a 262 Feb 12 12:31 Cargo.toml
-rw-r--r-- 1 gjf2a gjf2a 5264 Feb 12 12:31 Cargo.lock
/home/gjf2a/solutions320$ ls -l | grep Cargo > output.txt
/home/gjf2a/solutions320$ cat < output.txt
-rw-r--r-- 1 gjf2a gjf2a 5264 Feb 12 12:31 Cargo.lock
-rw-r--r-- 1 gjf2a gjf2a 262 Feb 12 12:31 Cargo.toml
/home/gjf2a/solutions320$ ls -l
total 32
-rw-r--r-- 1 gjf2a gjf2a 5264 Feb 12 12:31 Cargo.lock
-rw-r--r-- 1 gjf2a gjf2a 262 Feb 12 12:31 Cargo.toml
-rw------- 1 gjf2a gjf2a 108 Feb 11 10:21 grep_test.out
-rw------- 1 gjf2a gjf2a 108 Feb 15 09:08 output.txt
drwxr-xr-x 3 gjf2a gjf2a 4096 Feb 10 13:21 src
drwxr-xr-x 3 gjf2a gjf2a 4096 Feb 10 13:21 target
-rw------- 1 gjf2a gjf2a 106 Feb 11 10:22 toml.out
/home/gjf2a/solutions320$ ls -l &
Starting background process 1871
/home/gjf2a/solutions320$ total 32
-rw-r--r-- 1 gjf2a gjf2a 5264 Feb 12 12:31 Cargo.lock
-rw-r--r-- 1 gjf2a gjf2a 262 Feb 12 12:31 Cargo.toml
-rw------- 1 gjf2a gjf2a 108 Feb 11 10:21 grep_test.out
-rw------- 1 gjf2a gjf2a 108 Feb 15 09:08 output.txt
drwxr-xr-x 3 gjf2a gjf2a 4096 Feb 10 13:21 src
drwxr-xr-x 3 gjf2a gjf2a 4096 Feb 10 13:21 target
-rw------- 1 gjf2a gjf2a 106 Feb 11 10:22 toml.out
cd src
/home/gjf2a/solutions320/src$ cd bin
/home/gjf2a/solutions320/src/bin$ grep fn vssh2.rs | sort
fn default() -> Self {
fn execute_pipeline(&self) -> anyhow::Result<()> {
fn final_input_fd(&self) -> anyhow::Result<i32> {
fn from_str(s: &str) -> Result<Self, Self::Err> {
fn initial_output_fd(&self) -> anyhow::Result<i32> {
fn disassemble_redirect(pipes: &mut Vec<String>, i: usize, redirector: char) -> Option<String> {
fn execute(cmd: &str) {
fn externalize(command: &str) -> Vec<CString> {
fn main() {
fn process_next_line() -> anyhow::Result<Status> {
fn run_command(command: &str) -> anyhow::Result<()> {
fn run_stage(cmd: &str, output_fd: i32) -> anyhow::Result<i32> {
/home/gjf2a/solutions320/src/bin$ cat < vssh2.rs | sort | tail -8 > eight.out
/home/gjf2a/solutions320/src/bin$ cat eight.out
}
}
}
}
}
}
}
}
/home/gjf2a/solutions320/src/bin$ cd ../..
/home/gjf2a/solutions320$ cat < Cargo.toml > toml2.out
/home/gjf2a/solutions320$ diff Cargo.toml toml2.out
/home/gjf2a/solutions320$ exit