Linux command line bugzilla interface - bugzilla

About 6 months ago I wrote a simple set of bash scripts to generate hourly software project bugzilla reports. I lost the RAID controller on my development server and only have backups of the scripts I wrote.
The scripts depended on a bugzilla command line interface tool that I can no longer find.
From the format of the command line, the bugzilla tool command structure was:
bugzilla search --product $string1 --version $string2
Asking if anyone can point me to the tool I was using, searched online but unable to find it.

Related

Setting up a workflow for autoformatting a git repository (C)

I want to set up a workflow that allows me to have a git repository with a uniform/consistent formatting. The developers (approx. 30) should be able to commit properly formatted changes to their local repository easily, independent of their operating system (either some Linux or Windows 10) and independent from their IDE. Changes shall be pushed to a Linux server which administrates the remote repository.
From my point of view there are two steps necessary to ensure that the remote repository is properly formatted:
Format the current state of repository according to a set of rules.
Format the files affected by every new commit according to these rules.
The first step can be implemented easily by running an auto-formatting tool (e.g. clang-format) on the complete repository. The implementation of the second step can be further divided into two substeps:
2a) Client side: Format a commit properly before pushing it to the server.
2b) Server side: Check if the repository will be properly formatted after the changes of the commit are applied.
The second substep (2b) can be implemented easily (simlar to step 1). However, the implementation of the first substep (2a) is more demanding and I would like to reach out to the community for tipps/tricks/ideas.
So far I've had a closer look on the Eclipse autoformatter and clang-format:
The Eclipse autoformatter can only be used when Eclipse is installed, I haven't found a Eclipse autoformatter standalone application. Is it possible to run the eclipse autoformatter from the command line without a GUI?
clang-format is a unix tool which I cannot install and run standalone on a windows system. I've seen there is a LLVM executable for windows but I am not sure if the installation will inflict any undesired changes to my system. Is anybody using LLVM/clang-format on windows?
Are there other auto-formatting tools for C which work on Linux and Windows 10? Is anybody successfully using python scripts for this purpose?

Installing applications Silent via batch file

My office has purchased 50 computers including Windows 8.1. I want to install supporting applications like office application, browser, 7-zip, pdf reader and others with silent installation. cause, installing applications into the computer as much as it, would take much time.
My script is :
7-zip.exe /S /norestart
If I run the script above, 7-zip.exe successfully installed but not for adobe_reader.exe
How to use the silent installation correctly?
In order to automate the installation of something like 7-zip.. go to your command prompt and run a command like the following:
Code:
\\Apps\dsp\7z458.exe /S
For more information, visit the following link... it'll hopefully give you an idea of how to automate application deployment using batch files.
Website:
http://windowsitpro.com/windows/use-batch-files-automate-application-installation
Note:
In future, please elaborate on your questions. It's rather annoying when someone posts a question with no substance.
Hope this helps,
Sohail

Trouble updating my site to Drupal 7.34. Maybe problems connecting programs to webserver

I am new to this, and I hope someone can help me with the supposedly simple task of downloading an update of Drupal. A few months ago I finally created a website at Unoeuro and with Drupal. I even got around to chose themes and put content in.
My system: Windows 7, Webserver Apache, host: Unoeuro, run Drupal 7.32 just fine, besides the warning message on most of the pages on my site's Admin.
Problem: A little while ago Drupal started saying "There is a security update available for your version of Drupal. To ensure the security of your server, you should update immediately! See the available updates page for more information and to install your missing updates."
When I follow the link, it says: "Manual updates required" and "Updates of Drupal core are not supported at this time."
Do you think THAT is the reason, why I can't make it work?
However, since there is a link to the latest update, Drupal 7.34. and it is coloured red and looks like I need it.
When I follow the Update link, I'm told to download it through one of three methods- https://www.drupal.org/project/drupal After checking my Systemrequirements through NetCraft.com, reading the Installation Guide, and downloading and extracting the 7.34 zip-file with Zipwizzard, my command prompt doesn't know, what I'm talking about.
I've tried alsmost every combination of methods, both the Drush and Command Prompt, and different zip-files and tar-files and extracting in every command prompt.
Problem: It seems like none of them are not connected to a 'prober Drupal environment', as they say.
I've tried changing the PATH to the drupal-7.34 folder, where the environment should be (I suppose, because I just downloaded it). But the command prompt still says '... is not recognized as an internal or external command, operable program or batch file' or that the command is not made in a 'prober Drupal Environment'.
I don't know what I'm doing wrong and I hope someone can give me a hint about it.
Bro you need to be in the correct folder to use drush to update your site. If you are running a non-multi site instance move to [drupal_root]/sites/all and run the command "drush up", press y a few times and enjoy. SO thats:
ssh selsen#selsonssite.com
cd [drupal_root]/sites/all
drush up -y
PS using -y on drush up means you don't have to press y multiple times.
You can also contact me # josh#hamrent.com for more Drupal support.

How do I open/restore a progress database .bup file?

I have a .bup file which is supposed to be Progress database file. My question is, how can I open/restore it and look at the data?
You need to have Progress installed. In it you will find a command: prorest run from command line that will help you restore a previously backed up database. At least if it has been backed up using the built in back up command (probkup).
To make things easier for yourself you could start the Progress command line environment (it should be in the bin directory in your installation path). Simply run proenv to start that and then follow the steps below. If on Windows you will most likely find proenv in your Start menu.
Basic syntax:
prorest [new database] [archive]
so for example
prorest c:\temp\mynewdatabase file.bup
After that you can connect to the database using Progress built in commands. You might find more help at:
Progress KnowledgeBase
and
Progress communities.
A specific description of the prorest command can be found here: Progress KnowledgeBase Article 99033

How to script ADPlus for ease of customer use for diagnosing crashes and hangs

We're a great fan of using ADPlus in the Debugging Tools for Windows for customers who are experiencing crashes or hangs. However, the big problem we have is trying to explain what the customers need to type in order to run it. We would send them a script, but it seems that the precise incantation depends on whether the user is on 32 or 64-bit and precisely which version of the debugging tools they downloaded.
Our convoluted instructions at the moment go something like this:
Find where the debugging tools installed -- it may be c:\program files (x86)\Debugging Tools for windows (x86) or c:\program files\Debugging tools for windows (x86) or some other variant
If you're running a 64-bit app then you'll need c:\program files\Debugging tools for windows (x64) instead
Find out what your user directory is, it may c:\users\jim or z:\documents and settings\jim
Start a command prompt and type:
<whatever path you had above>\adplus -hang -pn myprocess.exe -o <your user dir>\crash_dumps
Obviously this has plenty of scope for going wrong, and isn't the best user experience, so I'd like to be able to send the user a batch file or other script that will detect:
Location of the Debugging Tools
User's home directory
So, is there a way of finding out where the debugging tools are installed? If the location exists in a registry, can that be easily extracted in a batch file? Can the user's home directory also be found from a batch script? My system (Win7-64) has an environment variable HOMEPATH. Can I assume that exists?
In answer to my own question: it looks like the simpler approach is just to run ProcDump instead, as that has a hang mode, and can be unzipped and run from any location:
procdump -h -accepteula %HOMEPATH%\Desktop\crashreport.dmp myprocess.exe

Resources