I am trying to deploy my react app on git pages and i get the following error.
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': Invalid argument
I tried to setting origin url with my username and password but that does not help.
Any pointer would be helpful.
It could be solved by adding user name in {project}/.git/config file. Just like this :
[remote "origin"]
url = http://<username>#<IP_address>/Shared/Infrastructure.git/
Please note the single quotation and remove <> in original command.
Alternatively, you should try to set global user name & pwd first
Related
I would like to create a .bat or .lnk file (preferably a .lnk file) to automate the following sequence in cmd for me:
>runas /user:5CG95082M0\School "C:\Users\School\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe""
Enter the password for 5CG95082M0\School: [my user password is an input here]
Attempting to start C:\Users\School\AppData\Local\Microsoft\Teams\Update.exe --processStart Teams.exe as user "5CG95082M0\School" ...
here is my question: how do I make the file to automatically input my user password when it is prompted I should do so?
Notice that the command is runas and that it waits for a user input. I've read that the use of echo to do that has been removed. As a proof (or is it?), note this when ran on cmd:
C:\Users\7329934>echo [my password] | runas /user:5CG95082M0\School "C:\Users\School\AppData\Local\Microsoft\Teams\Update.exe --processStart "Teams.exe""
Enter the password for 5CG95082M0\School:
Attempting to start C:\Users\School\AppData\Local\Microsoft\Teams\Update.exe --processStart Teams.exe as user "5CG95082M0\School" ...
RUNAS ERROR: Unable to run - C:\Users\School\AppData\Local\Microsoft\Teams\Update.exe --processStart Teams.exe
1326: The user name or password is incorrect.
Any thoughts?
Thanks
I want to create a batch file to execute a set of Git commands to:
Fetch a new remote repository.
Create a local repository to track the remote and check the new local branch out.
Second Git command uses a forward slash (origin/[repositoryName]) and gives the following error:
"fatal: Missing branch name; try -b".
#ECHO OFF
SET /P branch = Enter remote branch name:
git fetch origin %branch%
git checkout --track origin/%branch%
First, git command fetches the remote repository.
Second git command gives error:
"fatal: "Missing branch name; try -b"
As mentioned in comments you should use the following piece of code:
#echo off
set /p "branch=Enter remote branch name: "
git fetch origin %branch%
git checkout --track origin/%branch%
which is slightly modified.
You don't need to scream in batch file :) it is a case insensitive language.
When you set variables don't add extra spaces around the =. Because then, interpreter interprets it as var<space> and <space>value.
Also, quote variable name and value in format like: set "var=value".
I want to dump a shapefile from my postgresql database with the following command line:
pgsql2shp -f output.shp -h localhost -u postgres -P admin parcel "SELECT * FROM parcel.export_output WHERE ParcelNoEng=116"
but it goes on showing the error:
ERROR: function postgis_version() does not exist
LINE 1: SELECT postgis_version()
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
What shall I do to get it work?
I have added Postgresql/version/bin to my environmental variable.
You're missing the PostGIS extension. Execute the following command in your PostgreSQL using a client of your choice, e.g. psql, and try again:
CREATE EXTENSION postgis;
I have a script - with its according module - that lists from SQL all the instances from different Servers within the company I'm interning for.
This script works in another host machine but not in mine.
I get a MethodInvocationException and the error message is the following:
Exception calling "OpenSubKey" with "1" argument(s): "Requested registry access is not allowed."
The error comes from a file inside a module, not from the actual script.
I know its very general and Im not allowed to show the code, but any guidlines/tips or heads up on how to solve it? I tried playing around with something called registry key, but I'm not sure how it works.
Help please?
You can use Process Monitor to view all the registry accesses. This will show the one for which access is denied, and from there you can grant yourself the necessary access.
You will need to set suitable filters or you will be overwhelmed by the number of events! I would suggest the following:
Path: Operation is "RegOpenKey"
Result: is "Access Denied"
Option 2
Execute the command in PowerShell, then execute the following command:
$> $Error[0]
This should hopefully print something like the following, which will tell you the key it failed on:
dir : Requested registry access is not allowed.
At line:1 char:1
+ dir
+ ~~~
+ CategoryInfo : PermissionDenied: (HKEY_LOCAL_MACHINE\SECURITY:String) [Get-ChildItem], SecurityException
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.GetChildItemCommand
im trying to set the environment path to run pintos command like this in my home floder under ubuntu
set path = ($path /home/pintos/src/utils)
and I type terminal command try to compile this
:~$ source .tcshrc
but it seems get error like this
bash: .tcshrc: line 1: syntax error near unexpected token `('
bash: .tcshrc: line 1: `set path = ($path /home/pintos/src/utils)'
I dont know where is the syntax error is ...
You source your script, which is perfectly valid for [t]csh, into your running shell, which happens to be bash (and not tcsh).
If you're going to use tcsh, just run it (by typing tcsh) and ensure that your ~/.tcshrc has the desired effect. (Then, maybe, use chsh to change your login shell).
If you're going to use bash, set path using PATH=$PATH:/home/pintos/src/utils, in ~/.bashrc and/or in ~/.bash_profile.