For geeks
$ echo YWNlQHRvbW15YnV0bGVyLm1lCg== | base64 -d
My GPG key: 0xD63239F056A0DFE3
For other humans
Leave a message in the form below.
If confidentiality is requested, your request will be honored. Other comments will be shared here, as they often take the form of technical conversations that are publically beneficial.
Love the corporate BS Generator. You need to add “on-boarding” 🙂
Done! And as a bonus you get ‘incept’ and ‘adoption’ 😉
Hey Tommy 🙂
Wonderful vmware-autostarts script. Thanks a lot for that!
May i ask you how or if its possible to change the script to not shut down the machine instead of saving it ? This will make the script even more perfect for me <3
Kind regards
Jean-Pierre
You can add a case statement like any sysv init script that takes $1 as one of start|stop|restart
To gracefully shutdown a VM instead of starting it, make sure you’ve first installed VMware tools on the VM and then do this:
vmrun stop /path/to/vmachine.vmx soft
To force them off immediately (not recommended), do this:
vmrun stop /path/to/vmachine.vmx hard
I was looking for a place to give you some cudos on your excellent post,
http://www.atrixnet.com/autostart-vmware-virtual-machines-on-boot-in-linux/
and I see that I’m in good company. Works exactly as described. Appreciate the gift.
-Andrew
Love your vmware autostart script. Do you have one for VirtualBox?
Sorry, I don’t. You might want to look into vagrant for that.
Hi Tommy,
Great articles, love your work – keep it up.
In your http://www.atrixnet.com/autostart-vmware-virtual-machines-on-boot-in-linux/ article you may add a note:
The line in the script saying:
VM_cmd_exec=”sudo -u $VM_user -g $VM_user_group vmrun”
Should be altered to:
VM_cmd_exec=”sudo vmrun -T ws ”
For VMware Workstation 12 on Ubuntu 14.04…
Regards
Lars Olsen
Point noted, Lars Olsen. I’ll update the code to reflect your suggestion =)
Your VMware autostart script was an absolute life safer. Thank you so much for this.
I did initially have an issue with spaces in my folder name – I tried quoting the array string but still had a problem. So i just renamed the path to get rid of the spaces.
I also added a step in the shutdown sequence to run a batch file on the guest to cleanly shutdown the database running on the guest.
The code has been updated to fix the spaces issue. Thanks Royce!
The issue of delays between boot ups has been fixed also.
Hi Tommy,
One other requirement ;o)
A switch on your exifsort for choosing copy or move. I just tried an experiment and then cleared it with rm -rf only to realise too late that yours is a move, not a copy. They were just a few early and rather rubbish photos, so no harm done but I’m glad I checked.
Regards,
Greg
Hi there. I’m sorry I didn’t see your comment until now. I’ll send you an email about how I can help out.
Hi Tommy,
Your exifsort Perl script looks very close to being a lifesaver for me. I have about 1.5TB of photos and it took me far toooooo long to realise that a sensible, predictable date based storage system was far superior to descriptively named folders. My primary photo disk died yesterday and having bought a new disk, I thought it would be a good opportunity to remedy the mess while copying images back from my NAS backup. Unfortunately I have no Perl skills and I’m scared of making novice changes to your code to get the xmp files to be copied in with the various RAW and JPG formats they are associated with. I’d really like them in the same exif based dated directory as the image. I can guess how annoying it is to be asked to help but I’m pretty confident that my consistently incompetent coding skills aren’t up to the task? I’d be happy to contribute to costs and/or a charity of your choice, if you can help?
Regards,
Greg
Digging the script to offline a drive. Can the drive be brought back online in a similar fashion?
Thank you for your code with exifsort! That’s extremely helpful to me, and I forked it on Github to suit my needs.
I modified Y/M/D to only be Year/Month (but not day), then reformatted the month to be like “09-September” for readability.
I modified the –force mode to intelligently overwrite when md5 sums match, but rename if they do not. It’s a dumb algorithm that simply appends “_1” to the end of the filename, but it gets the job done well enough for me.
Finally, I just added some counters so that you can get an overview report of what happened at the end, and is also useful for when there are no errors but also no input (which used to result in no output). Now it just shows that nothing was moved, renamed, overwritten, or failed.
https://github.com/linucksrox/exifsort
Love your BS-Generator but “intrinsically” is as “intrinsicly” which is not the correct spelling.
Cheers!
V
*fixed!*
Mr. Butler,
I’d like to replicate your Corporate B.S. generator in a lita chatbot gem (https://www.lita.io/). I didn’t see any license or copyright on the generator so I’d like to ask your permission. Would that be ok?
Chris
Yep. That would be great!
Hi,
Thank for the “Autostart VMware Virtual Machines at Boot in Linux” script. I very useful for me and i m using now.
But i cannot make the VM_wait_between to work when i set amount of second it did not work. when os boot
all my vm start together. Please help tks
OS = Opensuse 13.1 x64
WRT http://www.atrixnet.com/show-what-users-are-running-processes-on-your-linux-system/
ps -eo user:$(cut -d: -f1 /etc/passwd | wc -L),pid,ppid,c,stime,tname,time,cmd
I laughed my ass off at your corporate BS generator, that was just sent to me. Awesome! As Chief Engineer for a major Air Force program, I sit through corporate meetings constantly listening to this meaningless dribble about as useful as your generator. I will be sharing this with our engineering team, they will get quite a good laugh!
Re: https://github.com/tommybutler/file-util/blob/master/File_Util/lib/File/Util/Manual.pod
The example showing:
# Define a subroutine to print the byte size and depth of all files in a
# directory, designed to be used as a callback function to list_dir()
sub filesize {
my ( $selfdir, $subdirs, $files, $depth ) = @_;
print( “$_ | ” . ( -s $_ ) . ” | $depth levels deep\n” for @$files;
}# Define a subroutine to print the byte size and depth of all files in a
…. does not compile due to the ‘print(‘ in the print statement.
I that line should be:
print “$_ | ” . ( -s $_ ) . ” | $depth levels deep\n” for @$files;
Excellent POD anyway! Thanks for that!
I’m glad the POD was helpful. I put a lot of effort into making sure it was extremely comprehensive and readable. I fixed the typo you mentioned. A bit belated, but it wasn’t a showstopper kind of bug. I appreciate it that you pointed it out.
may I suggest adding the term “going forward” to your Corporate B.S. Generator. The only time one ever hears the term is from corporate talking heads when they want to say “in the future” or “from here on in”, or even “tomorrow” or such.
On your bullshit generator (which is tremendous, by the way), you’ve left out perhaps one of the most annoying and repulsive pieces of bullshit which is….oh drat! I’ve forgotten. Let me reach out to my friend who will certainly know. I’m sure he’ll reach out to me soon, and I can reach out to you with it.
(OK, OK…see the pattern? “Reach out” if you do!!! It drives me f****** crazy. Why not just say ‘contact’?)
Regards,
Greg
If you put in:
for vm in “${VM_list[@]}”;
and put quotes around a few of those $vm your autostart vmware virtual machine script will function with virtual machines that have spaces in the names.
Hello,
I am using File::Util but sometimes, regularly, when i print the contact of the retrieved PDF file to a webclient, the pages are empty.
my $f = File::Util->new();
my $data = $f->load_file ( $file );
print $cgi->header( -type => $mimetype, -attachment => $document);
print $data;
What am i doing wrong here. Help will be appreciated very much.
Kind regards,
Michel Jansen