Only question left:
is there a way to make the script so that you dont have to type the names of the moviefiles (let the script take all .avi files automaticly in the folder where the .sh file is in.)
thank you for this.
I placed this in the existing script.
When i start the script indeed it asks me to restart, shutdown or Leave computer on.µ
When i give in R S or L the script starts converting the movies as it needs to do
after all the converting is done i get following output:
so it says its going to shutdown (or restart or just quit)
it echo's the command to shutdown or restart or exit
but it does not do the work, it comes back to commandprompt
---------- Post updated at 05:35 PM ---------- Previous update was at 05:01 PM ----------
To clarify previous post, this is the used script:
This is the output i get:
You need to read the code given to you, not just copy it. Look at this line, and see what it dies:
...well, I didn't want to reboot my computer after all.
stupid me...
remove the echo's before you try it (me and scripting,...)
Now it gives the command as it should be.
problem is that it asks for the sudo password after the converting (when i supposed to be AFK)
Is there a way to let the script ask the sudo password after the selection to shutdown or restart so you get output like
(fat text is new part, non fat is what i am trying to explain)
i am 100% sure it would be:
but then it must ask for the password and execute the restart/shutdown after the converting is finished
i know i ask alot, but like i said, me and scripting...
i found a way with editing sudoers file with visudo, so it don't need to give the password, but i hope there is a way to have it like described above (asking password after selecting reboot/shutdown and then first run the conversion and after converting doing the shutdown or reboot)
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Hi All,
I have to requirement to write a shell script to move file from one folder (A) to another five folder (B,C,D,E,F) and destination folder should be blank. In not blank just skip.
This script will run as a scheduler every 2 minutes. It will check number of files in folder A and move 1 to... (9 Replies)
hi,
i have a problem when i try to install Proliant support pack into a server with rhel 5.2
sv556:#/tmp/psp# ./hpsum -silent
./hpsum: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
i have already installed library... (3 Replies)
I need a bash script that will.
So here is what I made so far.
1. Convert video files to iPhone format
2. MV converted video to new directory (with domain.com attached to it)
4. Copy a NFO file (from another directory) and add some conversion information
5. Delete old directory
torrent... (6 Replies)
found a few ffmpeg posts and after a few unsuccessful attempts, I have found a solution :)
to encode an avi to to an nokia e71 recognized mp4 format:
ffmpeg -y -i inputFILE.avi -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop... (2 Replies)
Hi all,
I have a folder '/samplefolder' in which i have some files like data0.txt, data1.txt and data2.txt.
I have to search the folder for existence of the file data0.txt first and if found have to copy it to some other file; next i have to search the folder for existence of file... (5 Replies)
I have my main script calling another script to retrive a "ls -alt" of a directory that's located in a remote location I'm sftping into.
main.sh
#!/bin/ksh
getLS.sh > output.txt
getLS.sh
#!/bin/sh
/home<..>/sftp <host@ip> <<!
cd /some/dir/Log
ls -alt
quit
!
Basically I'd like to be... (2 Replies)