comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Creaty dummy.jpeg with Linux command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Creaty dummy.jpeg with Linux command [message #90960 is a reply to message #90959] Tue, 19 May 2015 02:20 Go to previous messageGo to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Dienstag, 19. Mai 2015 11:03:31 UTC+2 schrieb Helder:
> On Tuesday, May 19, 2015 at 10:52:09 AM UTC+2, Kai Heckel wrote:
>> Hey there!
>>
>> I'd like to create an empty dummy.jpeg using a Linux command.
>>
>> What I have is something like this:
>>
>> jpg_test = FILE_TEST(name+'*.jpg')
>> IF jpg_test EQ 0 then begin
>> spawn, 'touch '+file_dirs+'dummy.jpg'
>> ENDIF
>>
>> -> "name" = predefined file name
>> -> "file_dirs" = list of file diretories in which the dummy.jpeg should be copied in.
>>
>> The command seems right to me but the jpeg does not appear during the process...
>>
>> Any suggestions?
>> Thanks
>
> Well, the command is right, meaning that if I type in a terminal
> touch dummy.jpg
> I do get the file. Therefore you must have made an error in the directory (file_dirs) and your looking for the file in the wrong place.
> Why not just put a
> print, file_dirs+'dummy.jpg'
> after the spawn command.
>
> My guess: you forgot a forward slash after file_dirs, so that you're actually doing:
> touch /home/thisisme/myoutputdummy.jpg
> instead of
> touch /home/thisisme/myoutput/dummy.jpg
>
> I hope it helps.
> Helder

I forgot to mention that I want to do this in IDL.

What file_dirs look like is this --> F:\...\....\name\

So it should put the jpeg below the "name" folder but it doens't
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Accessing class structure fields outside the class
Next Topic: How to include a scale bar (distance bar) on the Google Map Plot?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:11:15 PDT 2025

Total time taken to generate the page: 0.00393 seconds