I ran scp -i ssh “ . ” using Go from my client machine, but it is returning “no such file or directory” [duplicate]2019 Community Moderator ElectionWhy is this curl command not working?fork/exec . no such file or directory exit status 1call 'go build' command from golang os.execcalling command with some arguments works but not with others bu wotrks from consoleHow do you get the output of a system command in Go?How to copy a file to a remote server in Python using SCP or SSH?How to scp in python?scp (secure copy) to ec2 instance without passwordSCP w/ ssh: copying a local file from windows to a remote server using scpHow to copy a folder from remote to local using scp?SSH SCP Local file to Remote in Terminal Mac Os XCan ssh and scp to ec2 linux instance but cannot scp from linux instance to local machineGolang SSH-Server: How to handle file transfer with scp?Go SSH server accepting file transfers via SCPHow to copy a file from one directory to another using “os/exec” package in GO
Recommendation letter by significant other if you worked with them professionally?
When a wind turbine does not produce enough electricity how does the power company compensate for the loss?
Why the color red for the Republican Party
Hotkey (or other quick way) to insert a keyframe for only one component of a vector-valued property?
Shifting between bemols (flats) and diesis (sharps)in the key signature
Are babies of evil humanoid species inherently evil?
Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?
How to detect if C code (which needs 'extern C') is compiled in C++
Definition of Statistic
Filtering SOQL results with optional conditionals
Does a warlock using the Darkness/Devil's Sight combo still have advantage on ranged attacks against a target outside the Darkness?
Are tamper resistant receptacles really safer?
Motivation for Zeta Function of an Algebraic Variety
Declaring and defining template, and specialising them
If I receive an SOS signal, what is the proper response?
'The literal of type int is out of range' con número enteros pequeños (2 dígitos)
What are actual Tesla M60 models used by AWS?
What are some noteworthy "mic-drop" moments in math?
Reversed Sudoku
Should I tell my boss the work he did was worthless
Vocabulary for giving just numbers, not a full answer
Do f-stop and exposure time perfectly cancel?
How are showroom/display vehicles prepared?
Conservation of Mass and Energy
I ran scp -i ssh “ . ” using Go from my client machine, but it is returning “no such file or directory” [duplicate]
2019 Community Moderator ElectionWhy is this curl command not working?fork/exec . no such file or directory exit status 1call 'go build' command from golang os.execcalling command with some arguments works but not with others bu wotrks from consoleHow do you get the output of a system command in Go?How to copy a file to a remote server in Python using SCP or SSH?How to scp in python?scp (secure copy) to ec2 instance without passwordSCP w/ ssh: copying a local file from windows to a remote server using scpHow to copy a folder from remote to local using scp?SSH SCP Local file to Remote in Terminal Mac Os XCan ssh and scp to ec2 linux instance but cannot scp from linux instance to local machineGolang SSH-Server: How to handle file transfer with scp?Go SSH server accepting file transfers via SCPHow to copy a file from one directory to another using “os/exec” package in GO
This question already has an answer here:
fork/exec . no such file or directory exit status 1
1 answer
call 'go build' command from golang os.exec
1 answer
Why is this curl command not working?
2 answers
calling command with some arguments works but not with others bu wotrks from console
1 answer
How to execute the scp -i ssh " . " using Go?
I have used the following code snippet.
cmd := exec.Command("scp -i dragonstone.pem <user>@ubuntu:<file location> .")
err = cmd.Run()
go scp
marked as duplicate by JimB
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 7 at 18:01
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
fork/exec . no such file or directory exit status 1
1 answer
call 'go build' command from golang os.exec
1 answer
Why is this curl command not working?
2 answers
calling command with some arguments works but not with others bu wotrks from console
1 answer
How to execute the scp -i ssh " . " using Go?
I have used the following code snippet.
cmd := exec.Command("scp -i dragonstone.pem <user>@ubuntu:<file location> .")
err = cmd.Run()
go scp
marked as duplicate by JimB
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 7 at 18:01
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
see this answer
– colminator
Mar 7 at 2:21
Please edit your question to show the exact error message that you're getting from scp. Don't paraphrase it. And what happens when you run that scp command interactively, instead of through go?
– Kenster
Mar 7 at 13:32
add a comment |
This question already has an answer here:
fork/exec . no such file or directory exit status 1
1 answer
call 'go build' command from golang os.exec
1 answer
Why is this curl command not working?
2 answers
calling command with some arguments works but not with others bu wotrks from console
1 answer
How to execute the scp -i ssh " . " using Go?
I have used the following code snippet.
cmd := exec.Command("scp -i dragonstone.pem <user>@ubuntu:<file location> .")
err = cmd.Run()
go scp
This question already has an answer here:
fork/exec . no such file or directory exit status 1
1 answer
call 'go build' command from golang os.exec
1 answer
Why is this curl command not working?
2 answers
calling command with some arguments works but not with others bu wotrks from console
1 answer
How to execute the scp -i ssh " . " using Go?
I have used the following code snippet.
cmd := exec.Command("scp -i dragonstone.pem <user>@ubuntu:<file location> .")
err = cmd.Run()
This question already has an answer here:
fork/exec . no such file or directory exit status 1
1 answer
call 'go build' command from golang os.exec
1 answer
Why is this curl command not working?
2 answers
calling command with some arguments works but not with others bu wotrks from console
1 answer
go scp
go scp
edited Mar 7 at 6:35
Flimzy
39.5k106699
39.5k106699
asked Mar 7 at 2:11
Raja GopalRaja Gopal
11
11
marked as duplicate by JimB
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 7 at 18:01
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by JimB
StackExchange.ready(function()
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();
);
);
);
Mar 7 at 18:01
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
see this answer
– colminator
Mar 7 at 2:21
Please edit your question to show the exact error message that you're getting from scp. Don't paraphrase it. And what happens when you run that scp command interactively, instead of through go?
– Kenster
Mar 7 at 13:32
add a comment |
1
see this answer
– colminator
Mar 7 at 2:21
Please edit your question to show the exact error message that you're getting from scp. Don't paraphrase it. And what happens when you run that scp command interactively, instead of through go?
– Kenster
Mar 7 at 13:32
1
1
see this answer
– colminator
Mar 7 at 2:21
see this answer
– colminator
Mar 7 at 2:21
Please edit your question to show the exact error message that you're getting from scp. Don't paraphrase it. And what happens when you run that scp command interactively, instead of through go?
– Kenster
Mar 7 at 13:32
Please edit your question to show the exact error message that you're getting from scp. Don't paraphrase it. And what happens when you run that scp command interactively, instead of through go?
– Kenster
Mar 7 at 13:32
add a comment |
1 Answer
1
active
oldest
votes
I will do this.
package main
import (
"fmt"
"os"
"os/exec"
)
func main()
cmd := "scp"
args := []string"-i", "dragonstone.pem", "<user>@ubuntu:<file location>", "."
if err := exec.Command(cmd, args...).Run(); err != nil
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
fmt.Println("Successfully.")
New contributor
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I will do this.
package main
import (
"fmt"
"os"
"os/exec"
)
func main()
cmd := "scp"
args := []string"-i", "dragonstone.pem", "<user>@ubuntu:<file location>", "."
if err := exec.Command(cmd, args...).Run(); err != nil
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
fmt.Println("Successfully.")
New contributor
add a comment |
I will do this.
package main
import (
"fmt"
"os"
"os/exec"
)
func main()
cmd := "scp"
args := []string"-i", "dragonstone.pem", "<user>@ubuntu:<file location>", "."
if err := exec.Command(cmd, args...).Run(); err != nil
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
fmt.Println("Successfully.")
New contributor
add a comment |
I will do this.
package main
import (
"fmt"
"os"
"os/exec"
)
func main()
cmd := "scp"
args := []string"-i", "dragonstone.pem", "<user>@ubuntu:<file location>", "."
if err := exec.Command(cmd, args...).Run(); err != nil
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
fmt.Println("Successfully.")
New contributor
I will do this.
package main
import (
"fmt"
"os"
"os/exec"
)
func main()
cmd := "scp"
args := []string"-i", "dragonstone.pem", "<user>@ubuntu:<file location>", "."
if err := exec.Command(cmd, args...).Run(); err != nil
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
fmt.Println("Successfully.")
New contributor
New contributor
answered Mar 7 at 4:13
devdotlogdevdotlog
17010
17010
New contributor
New contributor
add a comment |
add a comment |
1
see this answer
– colminator
Mar 7 at 2:21
Please edit your question to show the exact error message that you're getting from scp. Don't paraphrase it. And what happens when you run that scp command interactively, instead of through go?
– Kenster
Mar 7 at 13:32