Activity Stream
48,167 MEMBERS
6727 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member
    Website's:
    SherwoodForum.net

    Default SSH Command Variables

    I'm sorry if I'm not using the correct terminology here! I've been learning only what I need to to do the uploading stuff I need.


    I've been using mkisofs on my CentOS 5.7 to pack some DVD Video_TS (or whatever) image files into .isos.

    I'm trying to generate a command I can use to do this without having to copy-and-paste things for each command.

    So the command I'm using is:
    Code: 
    mkisofs -dvd-video -V 'File Name' -o /root/'Folder Name.iso' /root/'Folder Name'
    I'm trying to figure out how I could enter in a variable for the "File Name" part...can anyone help?
    Maverick Reviewed by Maverick on . SSH Command Variables I'm sorry if I'm not using the correct terminology here! I've been learning only what I need to to do the uploading stuff I need. I've been using mkisofs on my CentOS 5.7 to pack some DVD Video_TS (or whatever) image files into .isos. I'm trying to generate a command I can use to do this without having to copy-and-paste things for each command. So the command I'm using is: mkisofs -dvd-video -V 'File Name' -o /root/'Folder Name.iso' /root/'Folder Name' Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    xsl.tel xsltel.com
    create bash.sh

    Code: 
    #!/bin/bash
    find .  -type 'f' | while read VIDEO; do
      echo "Now processing ${VIDEO} ..."
      mkisofs -dvd-video -V '${VIDEO}' -o /root/'Folder Name.iso' /root/'Folder Name'
    done
    chmod it to 644
    ./bash.sh

    this will process all files in your current directory into that command. assuming that all files are videos.

    if you can provide more info it may make things easier .

    Highest Regards
    Mohammed H

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. sql command help
    By Mr.Mirchi in forum Technical Help Desk Support
    Replies: 3
    Last Post: 26th Dec 2011, 10:23 PM
  2. C++ Variables & IO [Lesson 2]
    By NucleA in forum Web Development Area
    Replies: 1
    Last Post: 11th Dec 2010, 08:30 PM
  3. [c#] variables, ifs, simple math and drawing objects
    By jayfella in forum Web Development Area
    Replies: 23
    Last Post: 18th Jun 2010, 04:52 PM
  4. Swap photo/avatar variables
    By Golden Falcon in forum IP.Board
    Replies: 7
    Last Post: 12th Feb 2010, 06:18 PM
  5. Optimizing the mysqld variables
    By Lease in forum Technical and Security Tutorials
    Replies: 0
    Last Post: 14th Jan 2008, 05:30 AM

Tags for this Thread

BE SOCIAL