How to set specific user name, remote server address using p4 command line, so that these values are reflected when viewing the information using p4 info ?
I know if I use the p4V client, and create the connection once, p4 info will automatically get updated. But I don't want to use p4V, and want to do it all from command Line.
This link lists all the Perforce environment variables: Environment Variables
Open the command line, and use the p4 set command p4 set to configure the fields you want to set.
For example,
To Configure the USER NAME
p4 set P4USER="USER_NAME"
To Configure the remote server address
p4 set P4PORT="ADDRESS:PORT"
Related
I am using 2 different GitHub accounts to manage 2 different projects. My device is a Pixelbook using the Linux beta terminal for pushing commits. I have the two accounts set up using SSH keys, and there doesn't seem to be a problem there.
When I initially set up the Linux, I set the username as "My-username", which is coincidentally the same username as my GitHub A-account. I looked at the repos on the Github B-account and saw my Linux/A-account listed as the author. The link to the profile is the correct account (as in the link is for github.com/B-Account).
How can I either
A: change the Linux username to something less identifiable
or
B: (preferred) change the author for new commits.
I have seen a few questions on here saying I can change the author with a script or amend command... but I don't think I really care about the existing commits. I just want to make it show the actual GitHub account name as the author instead of my terminal name.
Edit:
The git config --global user.name command shows my full name, and the email is set in the --local for each repo with the appropriate email to the associated account.
I was able to find a solution to my problem!
inside of the .git/config file, I removed the credential.helper = store line that I had previously enabled while using HTTPS connections.
Now my commits are posting with the appropriate account!
I tried integrating the changes from classic depot to stream depot through p4v. Steps below:
1) I moved to classic deport client which has both depot paths (source & destination paths) in client view.
2) ran p4 merge/integrate from my classic depot.
3) Given target location in p4v in p4merge window.
4) File got opened in my client.
5) Did 'p4 submit'.
Giving me this error :-
//New_stream/main/temp/sample.txt - warning: cannot submit from non-stream client
No files to submit.
Submit failed -- fix problems above then use 'p4 submit -c 69'.
Cant we submit the changes from classic depot client to stream ? as it is saying that cannot submit from non-stream client. then in this case how can we submit the changes? Can any one please help?
The error is saying:
cannot submit from non-stream client
The solution therefore is to use a stream client.
p4 set P4CLIENT=your-stream-client
p4 switch streamname
p4 integ //classic-depot/path/... //stream-depot/streamname/path/...
p4 resolve
p4 submit
What is the difference between account hooks and folder hooks in Mutt? If I understand Mutt correctly, it can only have one IMAP connection open at a time. So why can't I just let an account hook to set up everything?
What needs to be set in account hooks and what should be left for folder hooks and why?
As explained in the section Managing Multiple Accounts of the mutt HTML manual, the difference between folder-hook and account-hook lies in the fact that folder-hook is triggered when a folder is opened whereas account-hook is triggered whenever mutt tries to connect to the remote server of a mailbox, this happens both when you open a folder but also when you browse the list of your mailboxes (i.e. folders).
I need to create an incident (using remedy, ICM, or third party tools) automatically whenever a CRITICAL alert pops up on Nagios tool. Can anybody recommend how to do this?
In the nagios configuration where you define a contact, you have two options:
host_notification_commands
service_notification_commands
These ship with the default of host-notify-by-email and service-notify-by-email respectively, and those are defined with the command configuration option. You could define your own command, and put it next to one of the notify commands inside contacts, and It'll get run in addition to a page.
Alternatively, look for a plugin on the Nagios Exchange
An example; IRC notifications plugin:
http://exchange.nagios.org/directory/Addons/Notifications/IRC/nagircbot/details
Remedy can create incidents out of emails. Talk to your remedy admin, figure out the format the email needs to come in, and then modify the notification commands to send the email out as needed
I would like to setup fetchmail or getmail to pull email from Gmail. I would prefer it to be IMAP but I can live with POP as well. The issue I'm running into is that all these seem to want you to specify the exact list of folders you want checked (this is cleaner in IMAP than POP).
This is a hassle since I frequently change my list of folders and when I do, I don't want to have to change my configuration file to add/remove folders. When something changes, I automatically want a mbox or a maildir directory to 'show up' with the contents of my new folder. I would also prefer the mbox to have the same name as the folder on the server
The closest thing I could find was the -r option in fetchmail but that doesn't seem to do this either. I'm sure I must be missing something since every email client is able to do this and I'm hoping that that functionality lives inside the MRA and not in the MUA.
Update: I'd like to move this thread to Serverfault and I'm ok with voting to close this and migrate. Unfortunately, I dont have the rep to do it myself yet
With getmail you can use the following line in your configuration to get all your mail :
mailboxes = ("[Google Mail]/All Mail",)
With IMAP you can list the folders on the server, that way email clients can do whatever they need. In getmail it depends on how the email retrievers are written. If this configuration does not work, you can check the IMAP retriever code and write a specific one that suits your needs ;-)
my 2 cents
PS: I have no getmail installation to check if that do the trick ...
You could look into imapsync. It is designed to recursively sync up IMAP accounts. You will need an IMAP account for the destination. I have not tested it with gmail but if gmail is a well behaved IMAP server it should work.